Our new developer documentation is now available. Please check it out!
Room.CreateDecoder
public MediaDecoder CreateDecoder(ulong peerId, ushort mediaId)
public MediaDecoder CreateDecoder(ulong peerId, ushort mediaId, uint samplerate, bool stereo)
Create a new output media that will be added to PeerEntity
Info
Will use the default samplerate and stereo flag set by the current room
Parameters
Name | Type | Description |
---|---|---|
peerId | UInt64 | id of peer |
mediaId | UInt16 | id of output media |
samplerate | UInt32 | custom samplerate |
stereo | Boolean | custom stereo flag |
Returns
Type | Description |
---|---|
MediaDecoder | output media |
Variants
CreateDecoder(peerId, mediaId)
public MediaDecoder CreateDecoder(ulong peerId, ushort mediaId)
Create a new output media that will be added to PeerEntity
Warning
Will use the default samplerate and stereo flag set by the current room
Parameters
Name | Type | Description |
---|---|---|
peerId | UInt64 | id of peer |
mediaId | UInt16 | id of output media |
Returns
Type | Description |
---|---|
MediaDecoder | output media |
CreateDecoder(peerId, mediaId, samplerate, stereo)
public MediaDecoder CreateDecoder(ulong peerId, ushort mediaId, uint samplerate, bool stereo)
Create a new output media that will be added to PeerEntity
Warning
Will use the default samplerate and stereo flag set by the current room
Parameters
Name | Type | Description |
---|---|---|
peerId | UInt64 | id of peer |
mediaId | UInt16 | id of output media |
samplerate | UInt32 | custom samplerate |
stereo | Boolean | custom stereo flag |
Returns
Type | Description |
---|---|
MediaDecoder | output media |