Class ZegoMediaPlayerCallbackBridge


  • public final class ZegoMediaPlayerCallbackBridge
    extends java.lang.Object
    • Constructor Detail

      • ZegoMediaPlayerCallbackBridge

        public ZegoMediaPlayerCallbackBridge()
    • Method Detail

      • removeVideoDataBuffer

        public static void removeVideoDataBuffer​(int playerIndex)
      • setMediaPlayerFileReader

        public static void setMediaPlayerFileReader​(ZegoMediaPlayerFileReader reader,
                                                    int playerIndex)
      • onPlayStart

        public static void onPlayStart​(int playerIndex)
      • onPlayPause

        public static void onPlayPause​(int playerIndex)
      • onPlayStop

        public static void onPlayStop​(int playerIndex)
      • onPlayResume

        public static void onPlayResume​(int playerIndex)
      • onPlayError

        public static void onPlayError​(int code,
                                       int playerIndex)
      • onVideoBegin

        public static void onVideoBegin​(int playerIndex)
      • onAudioBegin

        public static void onAudioBegin​(int playerIndex)
      • onPlayEnd

        public static void onPlayEnd​(int playerIndex)
      • onBufferBegin

        public static void onBufferBegin​(int playerIndex)
      • onBufferEnd

        public static void onBufferEnd​(int playerIndex)
      • onLoadComplete

        public static void onLoadComplete​(int playerIndex)
      • onSeekComplete

        public static void onSeekComplete​(int code,
                                          long millisecond,
                                          int playerIndex)
      • onSnapshot

        public static void onSnapshot​(android.graphics.Bitmap image,
                                      int playerIndex)
      • onProcessInterval

        public static void onProcessInterval​(long timestamp,
                                             int playerIndex)
      • onRenderingProcessInterval

        public static void onRenderingProcessInterval​(long timestamp,
                                                      int playerIndex)
      • onReadEOF

        public static void onReadEOF​(int playerIndex)
      • onMediaPlayerVideoSizeChanged

        public static void onMediaPlayerVideoSizeChanged​(int width,
                                                         int height,
                                                         int playerIndex)
      • onPlayVideoData

        public static void onPlayVideoData​(java.nio.ByteBuffer data,
                                           int size,
                                           ZegoVideoDataFormat format,
                                           int playerIndex)
      • dequeueInputBuffer

        public static int dequeueInputBuffer​(int width,
                                             int height,
                                             int[] strides,
                                             int[] byteBufferLens,
                                             int playerIndex)
      • getInputBuffer

        public static VideoFrame getInputBuffer​(int index,
                                                int playerIndex)
      • queueInputBuffer

        public static void queueInputBuffer​(int bufferIndex,
                                            ZegoVideoDataFormat format,
                                            int playerIndex)
      • onAudioDataCallback

        public static void onAudioDataCallback​(java.nio.ByteBuffer data,
                                               int sample_rate,
                                               int channels,
                                               int bit_depth,
                                               int playerIndex)
      • onMediaSideInfoCallback

        public static void onMediaSideInfoCallback​(java.nio.ByteBuffer data,
                                                   int playerIndex)
      • open

        public static int open​(java.lang.String filePath,
                               int playerIndex)
      • read

        public static java.nio.ByteBuffer read​(int size,
                                               int playerIndex)
      • close

        public static void close​(int playerIndex)
      • seek

        public static long seek​(long pos,
                                int seekMode,
                                int playerIndex)
      • getSize

        public static long getSize​(int playerIndex)
      • onBlockBegin

        public static void onBlockBegin​(java.lang.String path,
                                        int playerIndex)
      • onBlockData

        public static int onBlockData​(java.nio.ByteBuffer buf,
                                      int playerIndex)