Developer Documentation
Our new developer documentation is now available. Please check it out!

Room.PauseMedia

public virtual Task<RpcResult> PauseMedia(MediaDecoder decoder)
public virtual Task<RpcResult> PauseMedia(ushort mediaId)

Send a "PauseMedia" to the server to stop the decoder for output.

Info

Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.

Parameters

NameTypeDescription
decoderMediaDecoderoutput media to stop
mediaIdUInt16raw id to stop

Returns

TypeDescription
Task<RpcResult>Thunk task that will not run (see )

Variants

PauseMedia(decoder)

public virtual Task<RpcResult> PauseMedia(MediaDecoder decoder)

Send a "PauseMedia" to the server to stop the decoder for output.

Warning

Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.

Parameters

NameTypeDescription
decoderMediaDecoderoutput media to stop

Returns

TypeDescription
Task<RpcResult>Thunk task that will not run (see )

PauseMedia(mediaId)

public virtual Task<RpcResult> PauseMedia(ushort mediaId)

Send a "PauseMedia" to the server to stop the decoder for output.

Warning

Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.

Parameters

NameTypeDescription
mediaIdUInt16raw id to stop

Returns

TypeDescription
Task<RpcResult>Thunk task that will not run (see )