Our new developer documentation is now available. Please check it out!
PlaybackComponent
Warning
Version 1.1.0 is deprecated and will be removed in the future and is not being supported for new users. Please update to the latest version as soon as possible.
public class PlaybackComponent : MonoBehaviour
Handles the Playback for received ODIN audio data.
Discussion
Properties
Name | Type | Description |
---|---|---|
PlaybackSource | AudioSource | The Unity AudioSource component for playback |
Mute | Boolean | The Unity AudioSource mute property |
MuteStream | Boolean | The Odin PlaybackStream underlying media stream calls |
RoomName | String | Room name for this playback. Change this value to change the PlaybackStream by Rooms from the Client. |
PeerId | UInt64 | Peer id for this playback. Change this value to change the PlaybackStream by RemotePeers in the Room. |
MediaStreamId | Int64 | Media id for this playback. Change this value to pick a PlaybackStream by media id from peers Medias. |
AutoDestroyAudioSource | Boolean | On true destroy the PlaybackSource in dispose to not leak |
AutoDestroyMediaStream | Boolean | On true destroy the Media in dispose to not leak or false for manually manage stream |
OverrideSampleRate | Boolean | Use set RemoteSampleRate on false |
SampleRate | MediaSampleRate | The playback Core |
HasActivity | Boolean |