Mode

enum Mode : Enum<Mode>

How a participant takes part in a room, as VideoSDK.createRoom and Room.changeMode take it and Participant.mode reports it.

Entries

Link copied to clipboard

Sends and receives media. The only mode that may publish a camera, microphone or screen share.

Link copied to clipboard

Connected to the room but carrying no media at all — no publishing, no subscribing. Useful for a moderator or a bot that only needs events and pubsub.

Link copied to clipboard

Receives other participants' media but publishes none. Publishing from this mode fails with 3066 (ERROR_ACTION_NOT_SUPPORTED_IN_MODE).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun valueOf(value: String): Mode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
fun values(): Array<Mode>

Returns an array containing the constants of this enum type, in the order they're declared.