OdinHandler.GetPlaybackComponents
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 PlaybackComponent[] GetPlaybackComponents()
public PlaybackComponent[] GetPlaybackComponents(string roomId)
public PlaybackComponent[] GetPlaybackComponents(ulong peerId)
public PlaybackComponent[] GetPlaybackComponents(long mediaStreamId)
Gets all Audio across all rooms
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
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
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
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
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. |