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.
| Name | Type | Description |
|---|
| Peer ID | integer | Peer ID. |
| Sample Rate | integer | Sample rate for audio (default 48000). |
| Stereo | boolean | Use stereo channels. |
| Application VOIP | boolean | True for voice optimization, false for audio/music. |
| Bitrate Kbps | integer | Encoding bitrate in kbps. |
| Packet Loss Perc | integer | Expected packet loss percentage to optimize FEC. |
| Update Position Interval MS | integer | How often to send position updates when silent. If 0, position updates are only performed when audio is being sent. |
Outputs
| Name | Type | Description |
|---|
| Return Value | object | The constructed encoder. |