Interface IAudioCaptureSession
- Namespace
- DotNetBrowser.Media
- Assembly
- DotNetBrowser.dll
A session that captures the audio of a browser.
public interface IAudioCaptureSession : IDisposable, IAutoDisposable
- Inherited Members
Remarks
The captured audio is delivered through the DataCaptured event. When the capture fails, the Failed event occurs and the session is disposed.
The session is disposed when it is stopped, when it fails, and when the browser is disposed. Use the Disposed event to learn that the session has ended for any of these reasons. Disposing the session stops the capture. Once the session is disposed, it drops the buffers it has not started delivering.
Properties
- IsActive
Indicates whether this session is capturing audio.
- Options
Gets the options this session was started with.
Methods
- Stop()
Stops the audio capture and disposes this session.
Events
- DataCaptured
Occurs when a buffer of audio has been captured.
- Failed
Occurs when the capture has failed.