Skip to main content
Version: 0.0.x

Initializing a Meeting

config()

Before initializing the meeting, you will need to first provide token. Please refer this documentation to generate a token.

//meeting configuration using videoSDK

VideoSDK.config("<your token>");

You can initialize the meeting using a factory method provided by the SDK called initMeeting(). By passing the parameters according to the need, it will generate a new Meeting class and then return the initiated meeting.

initMeeting()

Javascript
const meeting = VideoSDK.initMeeting({
meetingId: "abc-1234-xyz",
name: "John Doe",
micEnabled: true,
webcamEnabled: true,
maxResolution: "hd",
});

Meeting Initialization Parameters


meetingId

  • Unique Id of the meeting where that participant will be joining.

    • type : String
    • REQUIRED

Please refer this documentation to create a room.


name

  • Name of the participant who will be joining the meeting, this name will be displayed to other participants in the same meeting.

    • type : String
    • REQUIRED

participantId

  • Unique Id of the participant. If not passed then SDK will create an Id by itself and will use that id.

    • type : String
    • OPTIONAL

micEnabled

  • Whether mic of the participant will be on while joining the meeting. If it is set to false, then mic of that participant will be disabled by default, but can be enabled or disabled later.

    • type: Boolean
    • defaultValue : true
    • OPTIONAL

webcamEnabled

  • Whether webcam of the participant will be on while joining the meeting. If it is set to false, then webcam of that participant will be disabled by default, but can be enabled or disabled later.

    • type: Boolean
    • defaultValue : true
    • OPTIONAL

maxResolution

  • Sets the maximum upload resolution of that participant's webcam stream.

    • type: String
    • value: sd | hd
    • defaultValue: sd
    • OPTIONAL

Returns

meeting

  • After initializing the meeting, initMeeting() will return a new Meeting instance.