Skip to main content
Version: 2.x

Construct Encoder (Advanced)

Creates a new ODIN Encoder with advanced configuration options. Use this if you need to fine-tune the codec settings (bitrate, frame size, packet loss resilience) or optimize for music/high-quality audio instead of voice.

Inputs

NameTypeDescription
Peer IDintegerPeer ID.
Sample RateintegerSample rate for audio (default 48000).
StereobooleanUse stereo channels.
Application VOIPbooleanTrue for voice optimization, false for audio/music.
Bitrate KbpsintegerEncoding bitrate in kbps.
Packet Loss PercintegerExpected packet loss percentage to optimize FEC.
Update Position Interval MSintegerHow often to send position updates when silent. If 0, position updates are only performed when audio is being sent.

Outputs

NameTypeDescription
Return ValueobjectThe constructed encoder.