Class ZegoAudioCapture


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

      • ZegoAudioCapture

        public ZegoAudioCapture​(android.content.Context context,
                                int channels,
                                int sampleRate,
                                android.media.projection.MediaProjection mediaProjection,
                                int publishChannel,
                                IZegoScreenCaptureErrorCallback callback)
    • Method Detail

      • initCapture

        public boolean initCapture()
      • startCapture

        public boolean startCapture()
      • stopCapture

        public void stopCapture()
      • updateAudioConfig

        public void updateAudioConfig​(boolean captureAudio,
                                      int sampleRate,
                                      int channels)
      • setThis

        public void setThis​(long pThis)
      • initCapture

        public static int initCapture​(int publish_channel_index)
      • startCapture

        public static int startCapture​(int publish_channel_index)
      • stopCapture

        public static int stopCapture​(int publish_channel_index)
      • onRecordAudioFrame

        public static int onRecordAudioFrame​(int publish_channel_index,
                                             java.nio.ByteBuffer buffer,
                                             int bufLen,
                                             int sampleRate,
                                             int channels)