AudioCaptureSession

public interface AudioCaptureSession implements Observable<T>

A session that captures the audio of a browser.

The captured audio is delivered through AudioDataCaptured events. When the capture fails, the session becomes inactive and the AudioCaptureFailed event is fired. The session is stopped automatically when the browser is closed.

Events of a session are delivered only to the observers of that session. Once the session is stopped or has failed, it drops the buffers it has not started delivering, and registering an observer throws ObjectClosedException.

Since

9.6.0

See also

Functions

Link copied to clipboard
public abstract Audio audio()
Returns the Audio instance whose audio is captured.
Link copied to clipboard
public abstract boolean isActive()
Returns true if the session is capturing audio.
Link copied to clipboard
public abstract Subscription on<E extends T>(Class<E> eventClass, Observer<E> observer)
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
public abstract AudioCaptureOptions options()
Returns the options this session was started with.
Link copied to clipboard
public abstract void stop()
Stops the audio capture.