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
__namedParametersrequired
object
meetingIdrequired
string
set meeting idnamerequired
string
set local participant's namemicEnabledrequired
bool
set local participant's mic statewebcamEnabledrequired
bool
set local participant's webcam stateparicipantIdrequired
string
set local participant's Id
Properties
Methods
__methods
initialize(Context context)
void
initialize the MediasoupClientconfig(String token)
void
configure the tokeninitMeeting( Context context, String meetingId, String name, boolean micEnabled, boolean webcamEnabled, String participantId )
Meeting
initialize the meeting
Methods
Example
- Kotlin
- Java
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
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
null // required
});
Got a Question? Ask us on discord