Member Junction
    Preparing search index...

    A single chunk of audio captured FROM the browser tab (the media playing inside the page — e.g. a YouTube video's soundtrack), emitted by BaseBrowserAdapter.StartAudioCapture's callback.

    The default capture path (see PlaywrightBrowserAdapter) taps a playing <video> / <audio> element with element.captureStream() and encodes the tracks with an in-page MediaRecorder, so each chunk is a self-describing, webm-Opus-encoded slice of the audio. Adapters without in-page capture never emit chunks.

    Index

    Constructors

    Properties

    Channels: number = 2

    Channel count (1 = mono, 2 = stereo).

    Codec: "webm-opus" | "opus" | "pcm16" = 'webm-opus'

    The codec / container of DataBase64. 'webm-opus' is the default in-page MediaRecorder output; 'opus' / 'pcm16' are reserved for future backend capture paths (e.g. a server-side virtual audio sink).

    DataBase64: string = ''

    Base64-encoded encoded audio data for this chunk (no data URI prefix).

    DurationMs?: number

    Approximate duration of this chunk in milliseconds, when known.

    SampleRate: number = 48000

    Sample rate in Hz (typically 48000 for the MediaRecorder Opus path).

    SequenceNumber: number = 0

    Monotonically increasing chunk index, starting at 0 for the first chunk of a capture session. Lets consumers detect ordering / dropped chunks and resync the decode pipeline after a gap.