Add SetIsScreencast method to VideoSource.
Bug: None Change-Id: Iec0bb066b8100fa1d4bd095f78a0473933d1e30d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159689 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29785}
This commit is contained in:
committed by
Commit Bot
parent
c1dac38aec
commit
c5ec54e51b
@ -72,6 +72,10 @@ class NativeAndroidVideoTrackSource {
|
||||
targetPortraitAspectRatio.height, maxPortraitPixelCount, maxFps);
|
||||
}
|
||||
|
||||
public void setIsScreencast(boolean isScreencast) {
|
||||
nativeSetIsScreencast(nativeAndroidVideoTrackSource, isScreencast);
|
||||
}
|
||||
|
||||
@CalledByNative
|
||||
static VideoProcessor.FrameAdaptationParameters createFrameAdaptationParameters(int cropX,
|
||||
int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight, long timestampNs,
|
||||
@ -80,6 +84,8 @@ class NativeAndroidVideoTrackSource {
|
||||
cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight, timestampNs, drop);
|
||||
}
|
||||
|
||||
private static native void nativeSetIsScreencast(
|
||||
long nativeAndroidVideoTrackSource, boolean isScreencast);
|
||||
private static native void nativeSetState(long nativeAndroidVideoTrackSource, boolean isLive);
|
||||
private static native void nativeAdaptOutputFormat(long nativeAndroidVideoTrackSource,
|
||||
int landscapeWidth, int landscapeHeight, @Nullable Integer maxLandscapePixelCount,
|
||||
|
||||
Reference in New Issue
Block a user