Пример #1
0
 @CalledByNative
 private void openVideo() {
   if (mSurfaceHolder != null) {
     mCurrentState = STATE_IDLE;
     mCurrentBufferPercentage = 0;
     ContentVideoViewControls controls = mClient.createControls();
     if (controls == null) {
       controls = new FullScreenControls(getContext(), this);
     }
     setControls(controls);
     if (mNativeContentVideoView != 0) {
       nativeUpdateMediaMetadata(mNativeContentVideoView);
       nativeSetSurface(mNativeContentVideoView, mSurfaceHolder.getSurface());
     }
   }
 }