public class NativeCapturerObserver extends java.lang.Object implements VideoCapturer.CapturerObserver
限定符和类型 | 类和说明 |
---|---|
static interface |
NativeCapturerObserver.PreviewCallback |
构造器和说明 |
---|
NativeCapturerObserver(long nativeSource) |
NativeCapturerObserver(long nativeSource,
SurfaceTextureHelper surfaceTextureHelper) |
限定符和类型 | 方法和说明 |
---|---|
void |
dispose() |
void |
onByteBufferFrameCaptured(byte[] data,
int width,
int height,
int rotation,
long timestampNs) |
void |
onCapturerStarted(boolean success) |
void |
onCapturerStopped() |
void |
onFrameCaptured(VideoFrame frame) |
void |
onTextureFrameCaptured(int width,
int height,
int oesTextureId,
float[] transformMatrix,
int rotation,
long timestampNs) |
static void |
setCameraOrientationOffset(int orientation) |
void |
setPreviewCallback(NativeCapturerObserver.PreviewCallback callback) |
public NativeCapturerObserver(long nativeSource)
public NativeCapturerObserver(long nativeSource, SurfaceTextureHelper surfaceTextureHelper)
public void onCapturerStarted(boolean success)
public void onCapturerStopped()
public void onByteBufferFrameCaptured(byte[] data, int width, int height, int rotation, long timestampNs)
public void onTextureFrameCaptured(int width, int height, int oesTextureId, float[] transformMatrix, int rotation, long timestampNs)
public void onFrameCaptured(VideoFrame frame)
public void dispose()
public static void setCameraOrientationOffset(int orientation)
public void setPreviewCallback(NativeCapturerObserver.PreviewCallback callback)