Our new developer documentation is now available. Please check it out!
Room.StopMedia
public virtual Task<RpcResult> StopMedia(MediaEncoder encoder)
public virtual Task<RpcResult> StopMedia(ushort mediaId)
Send a "StopMedia"
to the server to stop the encoder.
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 |
---|---|---|
encoder | MediaEncoder | input media to stop |
mediaId | UInt16 | raw id to stop |
Returns
Type | Description |
---|---|
Task<RpcResult> | Thunk task that will not run (see |
Variants
StopMedia(encoder)
public virtual Task<RpcResult> StopMedia(MediaEncoder encoder)
Send a "StopMedia"
to the server to stop the encoder.
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 |
---|---|---|
encoder | MediaEncoder | input media to stop |
Returns
Type | Description |
---|---|
Task<RpcResult> | Thunk task that will not run (see |
StopMedia(mediaId)
public virtual Task<RpcResult> StopMedia(ushort mediaId)
Send a "StopMedia"
to the server to stop the encoder.
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 |