Package com.zego.zegoavkit2
Class ZegoMediaPlayerCallbackBridge
- java.lang.Object
-
- com.zego.zegoavkit2.ZegoMediaPlayerCallbackBridge
-
public final class ZegoMediaPlayerCallbackBridge extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ZegoMediaPlayerCallbackBridge()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
close(int playerIndex)
static int
dequeueInputBuffer(int width, int height, int[] strides, int[] byteBufferLens, int playerIndex)
static VideoFrame
getInputBuffer(int index, int playerIndex)
static long
getSize(int playerIndex)
static void
onAudioBegin(int playerIndex)
static void
onAudioDataCallback(java.nio.ByteBuffer data, int sample_rate, int channels, int bit_depth, int playerIndex)
static void
onBlockBegin(java.lang.String path, int playerIndex)
static int
onBlockData(java.nio.ByteBuffer buf, int playerIndex)
static void
onBufferBegin(int playerIndex)
static void
onBufferEnd(int playerIndex)
static void
onLoadComplete(int playerIndex)
static void
onMediaPlayerVideoSizeChanged(int width, int height, int playerIndex)
static void
onMediaSideInfoCallback(java.nio.ByteBuffer data, int playerIndex)
static void
onPlayEnd(int playerIndex)
static void
onPlayError(int code, int playerIndex)
static void
onPlayPause(int playerIndex)
static void
onPlayResume(int playerIndex)
static void
onPlayStart(int playerIndex)
static void
onPlayStop(int playerIndex)
static void
onPlayVideoData(java.nio.ByteBuffer data, int size, ZegoVideoDataFormat format, int playerIndex)
static void
onProcessInterval(long timestamp, int playerIndex)
static void
onReadEOF(int playerIndex)
static void
onRenderingProcessInterval(long timestamp, int playerIndex)
static void
onSeekComplete(int code, long millisecond, int playerIndex)
static void
onSnapshot(android.graphics.Bitmap image, int playerIndex)
static void
onVideoBegin(int playerIndex)
static int
open(java.lang.String filePath, int playerIndex)
static void
queueInputBuffer(int bufferIndex, ZegoVideoDataFormat format, int playerIndex)
static java.nio.ByteBuffer
read(int size, int playerIndex)
static void
removeVideoDataBuffer(int playerIndex)
static long
seek(long pos, int seekMode, int playerIndex)
static void
setAudioDataCallback(IZegoMediaPlayerAudioPlayCallback callback, int playerIndex)
static void
setBlockDataCallback(IZegoMediaPlayerBlockDataCallback callback, int playerIndex)
static void
setEventWithIndexCallback(IZegoMediaPlayerWithIndexCallback cb, int playerIndex)
static void
setMediaPlayerFileReader(ZegoMediaPlayerFileReader reader, int playerIndex)
static void
setMediaSideInfoCallback(IZegoMediaPlayerMediaSideInfoCallback callback, int playerIndex)
static void
setVideoDataWithIndexCallback(IZegoMediaPlayerVideoPlayWithIndexCallback cb, int playerIndex)
static void
setVideoDataWithIndexCallback2(IZegoMediaPlayerVideoPlayWithIndexCallback2 cb, int playerIndex)
-
-
-
Method Detail
-
removeVideoDataBuffer
public static void removeVideoDataBuffer(int playerIndex)
-
setEventWithIndexCallback
public static void setEventWithIndexCallback(IZegoMediaPlayerWithIndexCallback cb, int playerIndex)
-
setVideoDataWithIndexCallback
public static void setVideoDataWithIndexCallback(IZegoMediaPlayerVideoPlayWithIndexCallback cb, int playerIndex)
-
setVideoDataWithIndexCallback2
public static void setVideoDataWithIndexCallback2(IZegoMediaPlayerVideoPlayWithIndexCallback2 cb, int playerIndex)
-
setAudioDataCallback
public static void setAudioDataCallback(IZegoMediaPlayerAudioPlayCallback callback, int playerIndex)
-
setMediaSideInfoCallback
public static void setMediaSideInfoCallback(IZegoMediaPlayerMediaSideInfoCallback callback, int playerIndex)
-
setMediaPlayerFileReader
public static void setMediaPlayerFileReader(ZegoMediaPlayerFileReader reader, int playerIndex)
-
setBlockDataCallback
public static void setBlockDataCallback(IZegoMediaPlayerBlockDataCallback callback, 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)
-
-