Skip to main content

Basic concepts

  • SMeeting instance: create an instance with new SMeeting. Almost all APIs are exposed on this instance, and all events can be listened to through SMeeting.onNotifyRoomEvent. (If you want to enter multiple meetings at the same time, currently the only way is to create multiple instances.)
  • On the home page, get a meeting token (from your backend API) and call smeeting.login. Only after login succeeds can you perform further operations such as creating a meeting or entering a meeting
  • RoomInfo: the meeting information after entering a meeting with smeeting.enterRoom, available through smeeting.getRoomInfo
  • UserInfo: information about users in the meeting (including yourself and other remote users). Get a single user’s information with smeeting.getUserInfo(uid: string), or get all online users in the meeting with smeeting.getUsersInfo(true/false)—true returns a map, false returns an array

Initialize the SDK and check the environment

Create a meeting

Enter a meeting

Exit a meeting

End a meeting (dismiss)

Cancel a meeting

Get room info / user info / user list

Update the in-meeting display name

Get the device list

Open, close, and switch the camera

Start and stop playing a remote user’s video

Open, close, and switch the mic

Open, close, and switch the speaker

Request to start and stop sharing

Send a chat message

Send a custom message

Raise and lower a hand

The host asks a remote user to open the camera, or closes a remote user’s camera

The host asks a remote user to open the mic, or closes a remote user’s mic

The host removes a remote user from the room

The host updates the room’s mic permission state (mute all and unmute all)

The host updates whether members can unmute their own mic

The host updates whether members can turn their own camera back on

The host updates the room’s camera permission state

The host invites a device to the meeting

The host updates the invitees

The host updates the layout of a composite-mode meeting

Get the device list

Recording

Remote composite video