com.vanimeeting.demo

2.5.9 • Public • Published

Vani Meeting SFU/Webrtc Node js lib

This is for Vani Meeting Tutorial. This lib support Webrtc and SFU both.

Installation

Use the package manager npm to install foobar.

npm install com.vanimeeting.demo

Usage

Get Meeting Request Model

import MeetingHandler from "com.vanimeeting.demo"
//Getter to access Meeting Handler its optional.
getMeetingHandler(){
   return MeetingHandler;
}

this.getMeetingHandler().meetingStartRequestObject(roomId,userId,AppId,isVideoRequired, isAudioRequired)
//RoomId : Unique per meeting
//UserId : Unique per user
//AppId : Unique per app
//isVideoRequired : if video Required
//isAudioRequired : if audio Required

meetingStartRequestObject will return Meeting Request model. You can further edit configuration like isAdmin, defaultMicEnable, defaultVideoEnable etc. Have a look of class.

Init Meeting Lib

Once you configure meeting start model. We need to intilize Meeting Lib to do so simply do.In this lib will ask for user permission if required.

    this.getMeetingHandler().init()

This method will ask for permission if required and Emit the local video track and permission status few emits are.

permissionError , permissionApproved ,onTrack

You can listen to these emiter like this

      this.getMeetingHandler().eventEmitter.on("onTrack",this.onTrack);      

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Codeplay Labs

Readme

Keywords

none

Package Sidebar

Install

npm i com.vanimeeting.demo

Weekly Downloads

52

Version

2.5.9

License

ISC

Unpacked Size

169 kB

Total Files

13

Last publish

Collaborators

  • sachin-codeplaylabs