Developer Documentation

PlaybackComponent

public class PlaybackComponent : MonoBehaviour

Handles the Playback for received ODIN audio data.

Properties

NameDescription
PlaybackSourceThe Unity AudioSource component for playback
AutoDestroyAudioSourceOn true destroy the PlaybackComponent in dispose to not leak (AudioSource) or false for manually manage sources
AutoDestroyMediaStreamOn true destroy the Media in dispose to not leak or false for manually manage stream
SampleRateThe playback Core
MuteThe Unity AudioSource mute property
RoomNameRoom name for this playback. Change this value to change the PlaybackStream by Rooms from the Client.
PeerIdPeer id for this playback. Change this value to change the PlaybackStream by RemotePeers in the Room.
MediaStreamIdMedia id for this playback. Change this value to pick a PlaybackStream by media id from peers Medias.
HasActivity

Public Methods

NameDescription
SetMediaInfo
GetOdinAudioStreamStats