Table of Contents

Class AudioStream

Namespace
LiveKit

An audio stream from a remote participant, attached to an AudioSource in the scene.

public sealed class AudioStream : IDisposable
Inheritance
AudioStream
Implements
Inherited Members
Extension Methods

Constructors

AudioStream(RemoteAudioTrack, AudioSource)

Creates a new audio stream from a remote audio track, attaching it to the given AudioSource in the scene.

public AudioStream(RemoteAudioTrack audioTrack, AudioSource source)

Parameters

audioTrack RemoteAudioTrack

The remote audio track to stream.

source AudioSource

The audio source to play the stream on.

Exceptions

InvalidOperationException

Thrown if the audio track's room or participant is invalid.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~AudioStream()

protected ~AudioStream()