Our new developer documentation is now available. Please check it out!
PlaybackComponent
public class PlaybackComponent : MonoBehaviour
Handles the Playback for received ODIN audio data.
Properties
Name | Description |
---|---|
PlaybackSource | The Unity AudioSource component for playback |
AutoDestroyAudioSource | On true destroy the PlaybackComponent in dispose to not leak (AudioSource) or false for manually manage sources |
AutoDestroyMediaStream | On true destroy the Media in dispose to not leak or false for manually manage stream |
SampleRate | The playback Core |
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 |
Public Methods
Name | Description |
---|---|
SetMediaInfo | |
GetOdinAudioStreamStats |