Our new developer documentation is now available. Please check it out!
OdinHandler.GetPlaybackComponents
public PlaybackComponent[] GetPlaybackComponents()
public PlaybackComponent[] GetPlaybackComponents(string roomId)
public PlaybackComponent[] GetPlaybackComponents(ulong peerId)
public PlaybackComponent[] GetPlaybackComponents(long mediaStreamId)
Gets all Audio across all rooms
Info
Simply uses FindObjectsOfType PlaybackComponent A PlaybackComponent always have RoomName, PeerId and MediaId properties.
Parameters
Name | Type | Description |
---|---|---|
roomId | String | Room identifier e.g name or token |
peerId | UInt64 | peer ID |
mediaStreamId | Int64 | media handle ID |
Returns
Type | Description |
---|---|
PlaybackComponent[] | The array of objects found matching the type PlaybackComponent. |
Variants
GetPlaybackComponents()
public PlaybackComponent[] GetPlaybackComponents()
Gets all Audio across all rooms
Warning
Simply uses FindObjectsOfType PlaybackComponent A PlaybackComponent always have RoomName, PeerId and MediaId properties.
Returns
Type | Description |
---|---|
PlaybackComponent[] | The array of objects found matching the type PlaybackComponent. |
GetPlaybackComponents(roomId)
public PlaybackComponent[] GetPlaybackComponents(string roomId)
Gets all Audio filtered by room
Warning
A PlaybackComponent always have RoomName, PeerId and MediaId properties.
Parameters
Name | Type | Description |
---|---|---|
roomId | String | Room identifier e.g name or token |
Returns
Type | Description |
---|---|
PlaybackComponent[] | The filtered array of objects found matching the type PlaybackComponent. |
GetPlaybackComponents(peerId)
public PlaybackComponent[] GetPlaybackComponents(ulong peerId)
Gets all Audio across rooms filtered by peer
Warning
A PlaybackComponent always have RoomName, PeerId and MediaId properties.
Parameters
Name | Type | Description |
---|---|---|
peerId | UInt64 | peer ID |
Returns
Type | Description |
---|---|
PlaybackComponent[] | The filtered array of objects found matching the type PlaybackComponent. |
GetPlaybackComponents(mediaStreamId)
public PlaybackComponent[] GetPlaybackComponents(long mediaStreamId)
Gets all Audio across rooms filtered by media
Warning
A PlaybackComponent always have RoomName, PeerId and MediaId properties.
Parameters
Name | Type | Description |
---|---|---|
mediaStreamId | Int64 | media handle ID |
Returns
Type | Description |
---|---|
PlaybackComponent[] | The filtered array of objects found matching the type PlaybackComponent. |