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

Room.GetOrCreateEncoder

public bool GetOrCreateEncoder(ushort mediaId, out MediaEncoder encoder)
public bool GetOrCreateEncoder(ushort mediaId, uint samplerate, bool stereo, out MediaEncoder encoder)

Get a encoder from Room.

Info

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

Parameters

NameTypeDescription
mediaIdUInt16id of a input media
encoderMediaEncoderinput object
samplerateUInt32custom samplerate
stereoBooleancustom stereo flag

Returns

TypeDescription
Booleantrue or false on error

Variants

GetOrCreateEncoder(mediaId, encoder)

public bool GetOrCreateEncoder(ushort mediaId, out MediaEncoder encoder)

Get a encoder from Room.

Warning

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

Parameters

NameTypeDescription
mediaIdUInt16id of a input media
encoderMediaEncoderinput object

Returns

TypeDescription
Booleantrue or false on error

GetOrCreateEncoder(mediaId, samplerate, stereo, encoder)

public bool GetOrCreateEncoder(ushort mediaId, uint samplerate, bool stereo, out MediaEncoder encoder)

Get a encoder from Room.

Parameters

NameTypeDescription
mediaIdUInt16id of a input media
samplerateUInt32custom samplerate
stereoBooleancustom stereo flag
encoderMediaEncoderinput object

Returns

TypeDescription
Booleantrue or false on error