public class VideoSource extends MediaSource
MediaSource.State
Constructor and Description |
---|
VideoSource(long nativeSource) |
Modifier and Type | Method and Description |
---|---|
void |
adaptOutputFormat(int width,
int height,
int fps)
Calling this function will cause frames to be scaled down to the requested resolution.
|
void |
adaptOutputFormat(int landscapeWidth,
int landscapeHeight,
int portraitWidth,
int portraitHeight,
int fps)
Same as above, but allows setting two different target resolutions depending on incoming
frame orientation.
|
CapturerObserver |
getCapturerObserver() |
long |
getNativeVideoTrackSource()
Returns a pointer to webrtc::VideoTrackSourceInterface.
|
static void |
nativeAdaptOutputFormat(long source,
int landscapeWidth,
int landscapeHeight,
int portraitWidth,
int portraitHeight,
int fps) |
static long |
nativeGetInternalSource(long source) |
dispose, state
public void adaptOutputFormat(int width, int height, int fps)
public void adaptOutputFormat(int landscapeWidth, int landscapeHeight, int portraitWidth, int portraitHeight, int fps)
public CapturerObserver getCapturerObserver()
public long getNativeVideoTrackSource()
public static long nativeGetInternalSource(long source)
public static void nativeAdaptOutputFormat(long source, int landscapeWidth, int landscapeHeight, int portraitWidth, int portraitHeight, int fps)