Java Code Examples for org.webrtc.RendererCommon#ScalingType

The following examples show how to use org.webrtc.RendererCommon#ScalingType . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TextureViewRenderer.java    From mollyim-android with GNU General Public License v3.0 5 votes vote down vote up
public void setScalingType(@NonNull RendererCommon.ScalingType scalingTypeMatchOrientation,
                           @NonNull RendererCommon.ScalingType scalingTypeMismatchOrientation)
{
  ThreadUtils.checkIsOnMainThread();

  videoLayoutMeasure.setScalingType(scalingTypeMatchOrientation, scalingTypeMismatchOrientation);

  requestLayout();
}
 
Example 2
Source File: TextureViewRenderer.java    From VideoCRE with MIT License 4 votes vote down vote up
/**
 * Set how the video will fill the allowed layout area.
 */
public void setScalingType(RendererCommon.ScalingType scalingType) {
  ThreadUtils.checkIsOnMainThread();
  videoLayoutMeasure.setScalingType(scalingType);
  requestLayout();
}
 
Example 3
Source File: TextureViewRenderer.java    From VideoCRE with MIT License 4 votes vote down vote up
public void setScalingType(RendererCommon.ScalingType scalingTypeMatchOrientation,
    RendererCommon.ScalingType scalingTypeMismatchOrientation) {
  ThreadUtils.checkIsOnMainThread();
  videoLayoutMeasure.setScalingType(scalingTypeMatchOrientation, scalingTypeMismatchOrientation);
  requestLayout();
}
 
Example 4
Source File: RNVideoViewGroup.java    From react-native-twilio-video-webrtc with MIT License 4 votes vote down vote up
public void setScalingType(RendererCommon.ScalingType scalingType) {
    this.scalingType = scalingType;
}
 
Example 5
Source File: ConversationCallFragment.java    From q-municate-android with Apache License 2.0 4 votes vote down vote up
protected void updateVideoView(QBRTCSurfaceView surfaceViewRenderer, boolean mirror, RendererCommon.ScalingType scalingType) {
    Log.i(TAG, "updateVideoView mirror:" + mirror + ", scalintType = " + scalingType);
    surfaceViewRenderer.setScalingType(scalingType);
    surfaceViewRenderer.setMirror(mirror);
    surfaceViewRenderer.requestLayout();
}
 
Example 6
Source File: TextureViewRenderer.java    From mollyim-android with GNU General Public License v3.0 3 votes vote down vote up
public void setScalingType(@NonNull RendererCommon.ScalingType scalingType) {
  ThreadUtils.checkIsOnMainThread();

  videoLayoutMeasure.setScalingType(scalingType);

  requestLayout();
}