/** * This method shall only be called by native and exitFullscreen, To exit fullscreen, use * exitFullscreen in Java. */ @CalledByNative protected void destroyContentVideoView(boolean nativeViewDestroyed) { if (mVideoSurfaceView != null) { removeSurfaceView(); setVisibility(View.GONE); // To prevent re-entrance, call this after removeSurfaceView. mClient.onDestroyContentVideoView(); } if (nativeViewDestroyed) { mNativeContentVideoView = 0; } }