Interface IZegoMediaPlayerAudioHandler


  • public interface IZegoMediaPlayerAudioHandler
    • Method Detail

      • onAudioFrame

        void onAudioFrame​(ZegoMediaPlayer mediaPlayer,
                          java.nio.ByteBuffer data,
                          int dataLength,
                          ZegoAudioFrameParam param)
        The callback triggered when the media player throws out audio frame data. Available since: 1.3.4 Description: The callback triggered when the media player throws out audio frame data. Trigger: The callback is generated when the media player starts playing. Caution: The callback does not actually take effect until call [setAudioHandler] to set. Restrictions: When playing copyrighted music, this callback will be disabled by default. If necessary, please contact ZEGO technical support.
        Parameters:
        mediaPlayer - Callback player object.
        data - Raw data of audio frames.
        dataLength - Data length.
        param - audio frame flip mode.