Browse Source

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

Bastien Sevajol 10 years ago
parent
commit
3a6394a643
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/Muzich/CoreBundle/Resources/public/js/player/YoutubePlayer.js

+ 8 - 1
src/Muzich/CoreBundle/Resources/public/js/player/YoutubePlayer.js View File

@@ -78,7 +78,14 @@ function YoutubePlayer(ref_id, object_for_player, finish_callback)
78 78
     {
79 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
   }