OdinHandler.DestroyPlaybackComponents
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 void DestroyPlaybackComponents()
public void DestroyPlaybackComponents(string roomId)
public void DestroyPlaybackComponents(ulong peerId)
public void DestroyPlaybackComponents(long mediaStreamId)
Destroys all Audio instances
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
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
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
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
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 |