OdinHandler.DestroyPlaybackComponents
public void DestroyPlaybackComponents()
public void DestroyPlaybackComponents(string roomId)
public void DestroyPlaybackComponents(ulong peerId)
public void DestroyPlaybackComponents(long mediaStreamId)
Destroys all Audio instances
Info
This will free all medias with a PlaybackComponent and removes the associated AudioSource, If Audio is set!
Parameters
Name | Type | Description |
---|---|---|
roomId | String | Room identifier e.g name or token |
peerId | UInt64 | peer ID |
mediaStreamId | Int64 | media handle ID |
Variants
DestroyPlaybackComponents()
public void DestroyPlaybackComponents()
Destroys all Audio instances
Warning
This will free all medias with a PlaybackComponent and removes the associated AudioSource, If Audio is set!
DestroyPlaybackComponents(roomId)
public void DestroyPlaybackComponents(string roomId)
Destroys all Audio filtered by room
Warning
This will free all medias with a PlaybackComponent by room and removes the associated AudioSource, If Audio is set!
Parameters
Name | Type | Description |
---|---|---|
roomId | String | Room identifier e.g name or token |
DestroyPlaybackComponents(peerId)
public void DestroyPlaybackComponents(ulong peerId)
Destroys all Audio filtered by peer
Warning
This will free all medias with a PlaybackComponent from a peer and removes the associated AudioSource, If Audio is set!
Parameters
Name | Type | Description |
---|---|---|
peerId | UInt64 | peer ID |
DestroyPlaybackComponents(mediaStreamId)
public void DestroyPlaybackComponents(long mediaStreamId)
Destroys all Audio filtered by media
Warning
This will free the media with a PlaybackComponent and removes the associated AudioSource, If Audio is set!
Parameters
Name | Type | Description |
---|---|---|
mediaStreamId | Int64 | media handle ID |