android/src/main/java/com/oney/WebRTCModule/WebRTCView.java
/**
     * Request that {@link #surfaceViewRenderer} be laid out (as soon as
     * possible) because layout-related state either of this instance or of
     * {@code surfaceViewRenderer} has changed.
     */
Request that  #surfaceViewRenderer be laid out (as soon as
possible) because layout-related state either of this instance or of
surfaceViewRenderer has changed.
Request that #surfaceViewRenderer be laid out ( as soon as possible ) because layout - related state either of this instance or of surfaceViewRenderer has changed .
@SuppressLint("WrongCall")
    private void requestSurfaceViewRendererLayout() {
        getSurfaceViewRenderer().requestLayout();
        if (!invokeIsInLayout()) {
            onLayout(
                /* changed */ false,
                getLeft(), getTop(), getRight(), getBottom());
        }
    }
@ SuppressLint ( "WrongCall" ) private void requestSurfaceViewRendererLayout ( ) { getSurfaceViewRenderer ( ) . requestLayout ( ) ; if ( ! invokeIsInLayout ( ) ) { onLayout ( /* changed */ false , getLeft ( ) , getTop ( ) , getRight ( ) , getBottom ( ) ) ; } }
Request that {@link #surfaceViewRenderer} be laid out (as soon as
 possible) because layout-related state either of this instance or of
 {@code surfaceViewRenderer} has changed.
Request that { @link #surfaceViewRenderer } be laid out ( as soon as possible ) because layout - related state either of this instance or of { @code surfaceViewRenderer } has changed .
// Google/WebRTC just call requestLayout() on surfaceViewRenderer when // they change the value of its mirror or surfaceType property. // The above is not enough though when the video frame's dimensions or // rotation change. The following will suffice.