public static class MVideo.LocalVideoSource
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected VideoCapturer |
capturer |
protected long |
native_capturer |
构造器和说明 |
---|
LocalVideoSource(boolean isCamera) |
限定符和类型 | 方法和说明 |
---|---|
protected VideoCapturer |
createScaleScreenCapturer() |
protected VideoCapturer |
createScreenCapturer() |
protected VideoCapturer |
createUsbCameraCapturer() |
protected VideoCapturer |
createVideoCapturer() |
protected VideoSource |
createVideoSource(VideoCapturer capturer) |
MVideo.Camera |
currCamera() |
void |
dispose() |
VideoSource |
getSource() |
boolean |
init(MVideo.Camera cam) |
boolean |
initScaleScreen(ScaleScreenCapturer.ScaleZone scaleZone) |
boolean |
initScreen(int width,
int height,
int fps) |
boolean |
initUsbCamera(MVideo.Camera cam) |
long |
nativeSource() |
void |
removeVideoSource(MVideo.LocalVideoSource videoSource) |
void |
start() |
void |
startVideoSource() |
void |
stop() |
void |
stopVideoSource() |
void |
switchCamera() |
void |
uninit() |
@Nullable protected VideoCapturer capturer
protected long native_capturer
public void dispose()
public void removeVideoSource(MVideo.LocalVideoSource videoSource)
public boolean init(MVideo.Camera cam)
public boolean initScreen(int width, int height, int fps)
public boolean initScaleScreen(ScaleScreenCapturer.ScaleZone scaleZone)
public boolean initUsbCamera(MVideo.Camera cam)
public void uninit()
public MVideo.Camera currCamera()
public long nativeSource()
public VideoSource getSource()
protected VideoSource createVideoSource(VideoCapturer capturer)
public void stop()
public void stopVideoSource()
public void start()
public void startVideoSource()
protected VideoCapturer createScreenCapturer()
protected VideoCapturer createScaleScreenCapturer()
protected VideoCapturer createUsbCameraCapturer()
protected VideoCapturer createVideoCapturer()
public void switchCamera()