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
Name | Type | Description |
---|---|---|
decoder | MediaDecoder | output media to stop |
mediaId | UInt16 | raw id to stop |
Returns
Type | Description |
---|---|
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
Name | Type | Description |
---|---|---|
decoder | MediaDecoder | output media to stop |
Returns
Type | Description |
---|---|
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
Name | Type | Description |
---|---|---|
mediaId | UInt16 | raw id to stop |
Returns
Type | Description |
---|---|
Task<RpcResult> | Thunk task that will not run (see |