Developer Documentation

PlaybackComponent

public class PlaybackComponent : MonoBehaviour

Handles the Playback for received ODIN audio data.

Discussion

Properties

NameTypeDescription
PlaybackSourceAudioSourceThe Unity AudioSource component for playback
AutoDestroyAudioSourceBooleanOn true destroy the PlaybackSource in dispose to not leak (AudioSource) or false for manually manage sources
AutoDestroyMediaStreamBooleanOn true destroy the Media in dispose to not leak or false for manually manage stream
SampleRateMediaSampleRateThe playback Core
MuteBooleanThe Unity AudioSource mute property
RoomNameStringRoom name for this playback. Change this value to change the PlaybackStream by Rooms from the Client.
PeerIdUInt64Peer id for this playback. Change this value to change the PlaybackStream by RemotePeers in the Room.
MediaStreamIdInt64Media id for this playback. Change this value to pick a PlaybackStream by media id from peers Medias.
HasActivityBoolean

Public Methods

NameDescription
GetOdinAudioStreamStats

Example