protected ContentVideoView(
     Context context, long nativeContentVideoView, ContentVideoViewClient client) {
   super(context);
   mNativeContentVideoView = nativeContentVideoView;
   mViewAndroid = new ViewAndroid(new WindowAndroid(context.getApplicationContext()), this);
   mClient = client;
   initResources(context);
   mVideoSurfaceView = new VideoSurfaceView(context);
   showContentVideoView();
   setVisibility(View.VISIBLE);
   mClient.onShowCustomView(this);
 }
Example #2
0
 private ContentVideoView(
     Context context, int nativeContentVideoView, ContentVideoViewClient client) {
   super(context);
   mNativeContentVideoView = nativeContentVideoView;
   mClient = client;
   initResources(context);
   mCurrentBufferPercentage = 0;
   mVideoSurfaceView = new VideoSurfaceView(context);
   setBackgroundColor(Color.BLACK);
   showContentVideoView();
   setVisibility(View.VISIBLE);
   mClient.onShowCustomView(this);
 }