Skip to main content
Version: 0.1.x

VideoSDK Class

The entry point into real-time communication SDK.

using VideoSDK Class

The VideoSDK Class includes methods and events to initialize and configure the SDK. It is a factory class.

Parameters

  • __namedParametersrequiredobject

      Properties
    • meetingIdrequiredstring

      set meeting id
    • namerequiredstring

      set local participant's name
    • micEnabledrequiredbool

      set local participant's mic state
    • webcamEnabledrequiredbool

      set local participant's webcam state
    • paricipantIdrequiredstring

      set local participant's Id

Methods

  • __methods

      Methods
    • initialize(Context context)void

      initialize the MediasoupClient
    • config(String token)void

      configure the token
    • initMeeting( Context context, String meetingId, String name, boolean micEnabled, boolean webcamEnabled, String participantId )Meeting

      initialize the meeting

Example

initMeeting
// Configure the token
VideoSDK.config(token)

// Initialize the meeting
Meeting meeting = VideoSDK.initMeeting(
context,
meetingId, // required
name, // required
micEnabled, // required
webcamEnabled, // required
null, // required
null // required
)
});
initMeeting
// Configure the token
VideoSDK.config(token)

// Initialize the meeting
Meeting meeting = VideoSDK.initMeeting({
context,
meetingId, // required
name, // required
micEnabled, // required
webcamEnabled, // required
null, // required
null // required
});