Class IZegoMediaPlayerVideoHandler


  • public abstract class IZegoMediaPlayerVideoHandler
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onVideoFrame​(ZegoMediaPlayer mediaPlayer, java.nio.ByteBuffer[] data, int[] dataLength, ZegoVideoFrameParam param)
      The callback triggered when the media player throws out video frame data.
      void onVideoFrame​(ZegoMediaPlayer mediaPlayer, java.nio.ByteBuffer[] data, int[] dataLength, ZegoVideoFrameParam param, org.json.JSONObject extraInfo)
      The callback triggered when the media player throws out video frame data, with additional information for the video frame.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IZegoMediaPlayerVideoHandler

        public IZegoMediaPlayerVideoHandler()
    • Method Detail

      • onVideoFrame

        public void onVideoFrame​(ZegoMediaPlayer mediaPlayer,
                                 java.nio.ByteBuffer[] data,
                                 int[] dataLength,
                                 ZegoVideoFrameParam param)
        The callback triggered when the media player throws out video frame data. Available since: 1.3.4 Description: The callback triggered when the media player throws out video frame data. Trigger: The callback is generated when the media player starts playing. Caution: The callback does not actually take effect until call [setVideoHandler] 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 video frames (eg: RGBA only needs to consider data[0], I420 needs to consider data[0,1,2]).
        dataLength - Data length (eg: RGBA only needs to consider dataLength[0], I420 needs to consider dataLength[0,1,2]).
        param - Video frame flip mode.
      • onVideoFrame

        public void onVideoFrame​(ZegoMediaPlayer mediaPlayer,
                                 java.nio.ByteBuffer[] data,
                                 int[] dataLength,
                                 ZegoVideoFrameParam param,
                                 org.json.JSONObject extraInfo)
        The callback triggered when the media player throws out video frame data, with additional information for the video frame. Available since: 2.16.0 Description: The callback triggered when the media player throws out video frame data. Trigger: The callback is generated when the media player starts playing. Caution: The callback does not actually take effect until call [setVideoHandler] 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 video frames (eg: RGBA only needs to consider data[0], I420 needs to consider data[0,1,2]).
        dataLength - Data length (eg: RGBA only needs to consider dataLength[0], I420 needs to consider dataLength[0,1,2]).
        param - Video frame flip mode.
        extraInfo - Video frame extra info.