cohtml.AudioSubscriber

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

Inherits from IDisposable

Public Functions

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.

Public Properties

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.

Public Functions Documentation

function AudioSubscriber

AudioSubscriber(
    CohtmlView view
)

Creates an AudioSubscriber object.

Parameters:

function Subscribe

void Subscribe()

Subscribes to the CohtmlView.Listener audio stream events.

function Dispose

void Dispose()

Unsubscribes from the CohtmlView.Listener audio stream events.

Public Property Documentation

property Data

Dictionary< int, AudioData > Data;

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