Class PlaybackComponent
Handles the Playback for received ODIN audio data.
Properties
Mute
The Unity AudioSource mute property
RoomName
Room name for this playback. Change this value to change the PlaybackStream by Rooms from the Client.
PeerId
Peer id for this playback. Change this value to change the PlaybackStream by RemotePeers in the Room.
MediaStreamId
Media id for this playback. Change this value to pick a PlaybackStream by media id from peers Medias.
HasActivity
Fields
PlaybackSource
The Unity AudioSource component for playback
AutoDestroyAudioSource
On true destroy the OdinNative.Unity.Audio.PlaybackComponent.PlaybackSource in dispose to not leak
(AudioSource) or false for manually manage sources
AutoDestroyMediaStream
On true destroy the OdinNative.Odin.Media.MediaStream in dispose to not leak or false for manually manage stream
SampleRate
The playback OdinNative.Core.MediaSampleRate
Methods
SetMediaInfo(string, ulong, long)
Parameters
Type | Name |
---|---|
System.String | roomName |
System.UInt64 | peerId |
System.Int64 | mediaId |
GetOdinAudioStreamStats()
Returns
Global.NativeBindings.OdinAudioStreamStats