Package im.zego.internal.screencapture
Class ZegoAudioCapture
- java.lang.Object
-
- im.zego.internal.screencapture.ZegoAudioCapture
-
public class ZegoAudioCapture extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ZegoAudioCapture(android.content.Context context, int channels, int sampleRate, android.media.projection.MediaProjection mediaProjection, int publishChannel, IZegoScreenCaptureErrorCallback callback)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
initCapture()
static int
initCapture(int publish_channel_index)
static int
onRecordAudioFrame(int publish_channel_index, java.nio.ByteBuffer buffer, int bufLen, int sampleRate, int channels)
void
setThis(long pThis)
boolean
startCapture()
static int
startCapture(int publish_channel_index)
void
stopCapture()
static int
stopCapture(int publish_channel_index)
void
updateAudioConfig(boolean captureAudio, int sampleRate, int channels)
-
-
-
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)
-
-