public class VideoSource extends MediaSource
MediaSource.State
构造器和说明 |
---|
VideoSource(long nativeSource) |
VideoSource(long nativeSource,
SurfaceTextureHelper surfaceTextureHelper) |
限定符和类型 | 方法和说明 |
---|---|
void |
adaptOutputFormat(int width,
int height,
int fps)
Calling this function will cause frames to be scaled down to the requested resolution.
|
void |
dispose() |
VideoCapturer.CapturerObserver |
getCapturerObserver() |
void |
setPreviewCallback(NativeCapturerObserver.PreviewCallback callback) |
state
public VideoSource(long nativeSource)
public VideoSource(long nativeSource, SurfaceTextureHelper surfaceTextureHelper)
public void adaptOutputFormat(int width, int height, int fps)
public VideoCapturer.CapturerObserver getCapturerObserver()
public void setPreviewCallback(NativeCapturerObserver.PreviewCallback callback)
public void dispose()
dispose
在类中 MediaSource