cohtml.AudioSubscriber
Responsible for subscribing to the CohtmlView.Listener audio events to receive and manage AudioData streams.
Inherits from IDisposable
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| AudioSubscriber(CohtmlView view) Creates an AudioSubscriber object. | |
| void | Subscribe() Subscribes to the CohtmlView.Listener audio stream events. |
| void | Dispose() Unsubscribes from the CohtmlView.Listener audio stream events. |
Public Properties
Section titled “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
Section titled “Public Functions Documentation”function AudioSubscriber
Section titled “function AudioSubscriber”AudioSubscriber( CohtmlView view)Creates an AudioSubscriber object.
Parameters:
- view The CohtmlView owning this object.
function Subscribe
Section titled “function Subscribe”void Subscribe()Subscribes to the CohtmlView.Listener audio stream events.
function Dispose
Section titled “function Dispose”void Dispose()Unsubscribes from the CohtmlView.Listener audio stream events.
Public Property Documentation
Section titled “Public Property Documentation”property Data
Section titled “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.
© 2026 Coherent Labs. All rights reserved.