Skip to content
SiteEmail

cohtml.AudioSubscriber

Responsible for subscribing to the CohtmlView.Listener audio events to receive and manage AudioData streams.

Inherits from IDisposable

Name
AudioSubscriber(CohtmlView view)
Creates an AudioSubscriber object.
voidSubscribe()
Subscribes to the CohtmlView.Listener audio stream events.
voidDispose()
Unsubscribes from the CohtmlView.Listener audio stream events.
Name
Dictionary< int, AudioData >Data
Collection of audio data received from the native cohtml library. The key is the internal ID of the audio stream.
AudioSubscriber(
CohtmlView view
)

Creates an AudioSubscriber object.

Parameters:

void Subscribe()

Subscribes to the CohtmlView.Listener audio stream events.

void Dispose()

Unsubscribes from the CohtmlView.Listener audio stream events.

Dictionary< int, AudioData > Data;

Collection of audio data received from the native cohtml library. The key is the internal ID of the audio stream.