@Override
 protected void onPause() {
   super.onPause();
   if (webVideo != null) {
     webVideo.onPause();
     webVideo.pauseTimers();
   }
 }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   requestWindowFeature(Window.FEATURE_NO_TITLE);
   getWindow()
       .setFlags(
           WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
   super.onCreate(savedInstanceState);
 }
 @Override
 protected void onResume() {
   super.onResume();
   if (webVideo != null) {
     webVideo.resumeTimers();
     webVideo.onResume();
   }
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (webVideo != null) {
     webVideo.setWebViewClient(null);
     webVideo.setWebChromeClient(null);
     webVideo.destroy();
   }
 }