Developer Documentation

OdinHandler.DestroyPlaybackComponents

Warning

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

Info

This will free all medias with a PlaybackComponent and removes the associated AudioSource, If Audio is set!

Parameters

NameTypeDescription
roomIdStringRoom identifier e.g name or token
peerIdUInt64peer ID
mediaStreamIdInt64media 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

NameTypeDescription
roomIdStringRoom 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

NameTypeDescription
peerIdUInt64peer 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

NameTypeDescription
mediaStreamIdInt64media handle ID