Class ZegoCallbackHelpers


  • public class ZegoCallbackHelpers
    extends java.lang.Object
    • Constructor Detail

      • ZegoCallbackHelpers

        public ZegoCallbackHelpers()
    • Method Detail

      • callMediaVideoFrameMethod

        public static void callMediaVideoFrameMethod​(java.lang.Object thiz,
                                                     ZegoMediaPlayer mediaPlayer,
                                                     java.nio.ByteBuffer[] data,
                                                     int[] dataLength,
                                                     ZegoVideoFrameParam param,
                                                     org.json.JSONObject extraInfo)
      • callOnPlayerRenderVideoFirstFrameMethod

        public static void callOnPlayerRenderVideoFirstFrameMethod​(java.lang.Object thiz,
                                                                   java.lang.String streamID)
      • callOnPlayerRenderCameraVideoFirstFrameMethod

        public static void callOnPlayerRenderCameraVideoFirstFrameMethod​(java.lang.Object thiz,
                                                                         java.lang.String streamID)
      • callOnPlayerRecvVideoFirstFrameMethod

        public static void callOnPlayerRecvVideoFirstFrameMethod​(java.lang.Object thiz,
                                                                 java.lang.String streamID)
      • callOnPlayerSyncRecvVideoFirstFrameMethod

        public static void callOnPlayerSyncRecvVideoFirstFrameMethod​(java.lang.Object thiz,
                                                                     java.lang.String streamID)
      • callOnPlayerLowFpsWarningMethod

        public static void callOnPlayerLowFpsWarningMethod​(java.lang.Object thiz,
                                                           ZegoVideoCodecID codecID,
                                                           java.lang.String streamID)
      • callOnRemoteCameraStateUpdateMethod

        public static void callOnRemoteCameraStateUpdateMethod​(java.lang.Object thiz,
                                                               java.lang.String streamID,
                                                               ZegoRemoteDeviceState state)
      • callCustomVideoCaptureOnStartMethod

        public static void callCustomVideoCaptureOnStartMethod​(java.lang.Object thiz,
                                                               ZegoPublishChannel channel)
      • callCustomVideoProcessOnStartMethod

        public static void callCustomVideoProcessOnStartMethod​(java.lang.Object thiz,
                                                               ZegoPublishChannel channel)
      • callCustomVideoCaptureOnEncodedDataTrafficControlMethod

        public static void callCustomVideoCaptureOnEncodedDataTrafficControlMethod​(java.lang.Object thiz,
                                                                                   int width,
                                                                                   int height,
                                                                                   int fps,
                                                                                   int bitrate,
                                                                                   ZegoPublishChannel channel)
      • callCustomVideoCaptureOnStopMethod

        public static void callCustomVideoCaptureOnStopMethod​(java.lang.Object thiz,
                                                              ZegoPublishChannel channel)
      • callCustomVideoProcessOnStopMethod

        public static void callCustomVideoProcessOnStopMethod​(java.lang.Object thiz,
                                                              ZegoPublishChannel channel)
      • callOnPublisherCapturedVideoFirstFrameMethod

        public static void callOnPublisherCapturedVideoFirstFrameMethod​(java.lang.Object thiz,
                                                                        ZegoPublishChannel channel)
      • callOnPublisherSendVideoFirstFrameMethod

        public static void callOnPublisherSendVideoFirstFrameMethod​(java.lang.Object thiz,
                                                                    ZegoPublishChannel channel)
      • callOnPublisherRenderVideoFirstFrameMethod

        public static void callOnPublisherRenderVideoFirstFrameMethod​(java.lang.Object thiz,
                                                                      ZegoPublishChannel channel)
      • callOnPlayerVideoSizeChangedMethod

        public static void callOnPlayerVideoSizeChangedMethod​(java.lang.Object thiz,
                                                              java.lang.String streamID,
                                                              int width,
                                                              int height)
      • callOnPublisherVideoSizeChangedMethod

        public static void callOnPublisherVideoSizeChangedMethod​(java.lang.Object thiz,
                                                                 int width,
                                                                 int height,
                                                                 ZegoPublishChannel channel)
      • callCustomVideoRenderOnCapturedVideoFrameRawDataMethod

        public static void callCustomVideoRenderOnCapturedVideoFrameRawDataMethod​(java.lang.Object thiz,
                                                                                  java.nio.ByteBuffer[] data,
                                                                                  int[] dataLength,
                                                                                  ZegoVideoFrameParam param,
                                                                                  ZegoVideoFlipMode flipMode,
                                                                                  ZegoPublishChannel channel)
      • callCustomVideoRenderOnCustomVideoRenderRemoteFrameDataMethod

        public static void callCustomVideoRenderOnCustomVideoRenderRemoteFrameDataMethod​(java.lang.Object thiz,
                                                                                         java.nio.ByteBuffer[] data,
                                                                                         int[] dataLength,
                                                                                         ZegoVideoFrameParam param,
                                                                                         java.lang.String streamID)
      • callCustomVideoRenderOnRemoteVideoFrameEncodedDataMethod

        public static void callCustomVideoRenderOnRemoteVideoFrameEncodedDataMethod​(java.lang.Object thiz,
                                                                                    java.nio.ByteBuffer buffers,
                                                                                    int dataLen,
                                                                                    ZegoVideoEncodedFrameParam param,
                                                                                    long referenceTimeMillisecond,
                                                                                    java.lang.String streamID)
      • onCapturedUnprocessedRawData

        public static void onCapturedUnprocessedRawData​(java.lang.Object thiz,
                                                        java.nio.ByteBuffer data,
                                                        int[] dataLength,
                                                        ZegoVideoFrameParam param,
                                                        long referenceTimeMillisecond,
                                                        ZegoPublishChannel channel)
      • onCapturedUnprocessedTextureData

        public static void onCapturedUnprocessedTextureData​(java.lang.Object thiz,
                                                            int textureID,
                                                            int width,
                                                            int height,
                                                            long referenceTimeMillisecond,
                                                            ZegoPublishChannel channel)
      • getCustomVideoProcessInputSurfaceTexture

        public static android.graphics.SurfaceTexture getCustomVideoProcessInputSurfaceTexture​(java.lang.Object thiz,
                                                                                               int width,
                                                                                               int height,
                                                                                               ZegoPublishChannel value)
      • callMediaPlayerSnapshotMethod

        public static void callMediaPlayerSnapshotMethod​(java.lang.Object takeSnapshotHandler,
                                                         int errorCode,
                                                         android.graphics.Bitmap image)