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