pauseAllStreams

suspend fun pauseAllStreams(kind: StreamKind? = null)

Stops the server sending this participant remote media of one kind, which saves the bandwidth as well as the rendering — unlike simply hiding the tiles. Nobody else is affected.

RoomEventListener.onPausedAllStreams confirms it: once, with that kind, or once with null when every kind was paused.

Parameters

kind

the kind to pause, or null for every kind in one request.

See also

Throws

code 4057 (PAUSE_ALL_STREAMS_FAILED) if the server refuses.