瀏覽代碼

Logiciel: Anomalie #986: ajout d'un try sur la proecdure de fermeture d'un lecteur youtube

Bastien Sevajol 11 年之前
父節點
當前提交
3a6394a643
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/Muzich/CoreBundle/Resources/public/js/player/YoutubePlayer.js

+ 8 - 1
src/Muzich/CoreBundle/Resources/public/js/player/YoutubePlayer.js 查看文件

78
     {
78
     {
79
       if(typeof(_yt_player.stopVideo)!=='undefined')
79
       if(typeof(_yt_player.stopVideo)!=='undefined')
80
       {
80
       {
81
-        _yt_player.stopVideo();
81
+        try
82
+        {
83
+          _yt_player.stopVideo();
84
+        }
85
+        catch (e)
86
+        {
87
+          
88
+        }
82
       }
89
       }
83
     }
90
     }
84
   }
91
   }