Interface IAudioEncodedFrameObserver

The encoded audio observer.

Hierarchy

  • IAudioEncodedFrameObserver

Methods

  • Gets the mixed and encoded audio data of the local and all remote users.

    After calling registerAudioEncodedFrameObserver and setting the audio profile as AudioEncodedFrameObserverPositionMixed, you can get the mixed and encoded audio data of the local and all remote users through this callback.

    Parameters

    • frameBuffer: Uint8Array

      The audio buffer.

    • length: number

      The data length (byte).

    • audioEncodedFrameInfo: EncodedAudioFrameInfo

      Audio information after encoding. See EncodedAudioFrameInfo.

    Returns void

  • Gets the encoded audio data of all remote users.

    After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionPlayback, you can get encoded audio data of all remote users through this callback.

    Parameters

    • frameBuffer: Uint8Array

      The audio buffer.

    • length: number

      The data length (byte).

    • audioEncodedFrameInfo: EncodedAudioFrameInfo

      Audio information after encoding. See EncodedAudioFrameInfo.

    Returns void

  • Gets the encoded audio data of the local user.

    After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionRecord, you can get the encoded audio data of the local user from this callback.

    Parameters

    • frameBuffer: Uint8Array

      The audio buffer.

    • length: number

      The data length (byte).

    • audioEncodedFrameInfo: EncodedAudioFrameInfo

      Audio information after encoding. See EncodedAudioFrameInfo.

    Returns void

Generated using TypeDoc