Our new developer documentation is now available. Please check it out!
PlaybackComponent
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 |
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 |
SampleRate | MediaSampleRate | The playback Core |
Mute | Boolean | The Unity AudioSource mute property |
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. |
HasActivity | Boolean |
Public Methods
Name | Description |
---|---|
GetOdinAudioStreamStats |