Developer Documentation
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

NameTypeDescription
peerIdUInt64id of peer
mediaIdUInt16id of output media
samplerateUInt32custom samplerate
stereoBooleancustom stereo flag

Returns

TypeDescription
MediaDecoderoutput 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

NameTypeDescription
peerIdUInt64id of peer
mediaIdUInt16id of output media

Returns

TypeDescription
MediaDecoderoutput 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

NameTypeDescription
peerIdUInt64id of peer
mediaIdUInt16id of output media
samplerateUInt32custom samplerate
stereoBooleancustom stereo flag

Returns

TypeDescription
MediaDecoderoutput media