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

Room.CreateEncoder

public MediaEncoder CreateEncoder(ushort mediaId)
public MediaEncoder CreateEncoder(ushort mediaId, uint samplerate, bool stereo)

Create a new input media that will be added toRoom

Info

Will use the default samplerate and stereo flag set by the current room

Parameters

NameTypeDescription
mediaIdUInt16id of a input media
samplerateUInt32custom samplerate
stereoBooleancustom stereo flag

Returns

TypeDescription
MediaEncoderinput media

Variants

CreateEncoder(mediaId)

public MediaEncoder CreateEncoder(ushort mediaId)

Create a new input media that will be added toRoom

Warning

Will use the default samplerate and stereo flag set by the current room

Parameters

NameTypeDescription
mediaIdUInt16id of a input media

Returns

TypeDescription
MediaEncoderinput media

CreateEncoder(mediaId, samplerate, stereo)

public MediaEncoder CreateEncoder(ushort mediaId, uint samplerate, bool stereo)

Create a new input media that will be added toRoom

Parameters

NameTypeDescription
mediaIdUInt16id of a input media
samplerateUInt32custom samplerate
stereoBooleancustom stereo flag

Returns

TypeDescription
MediaEncoderinput media