Index: trunk/extensions/OggHandler/OggPlayer.js |
— | — | @@ -191,12 +191,16 @@ |
192 | 192 | { |
193 | 193 | //do another test for safari: |
194 | 194 | if( wgOggPlayer.safari ){ |
195 | | - dummyvid = document.createElement("video"); |
196 | | - if (dummyvid.canPlayType("video/ogg;codecs=\"theora,vorbis\"") == "probably") |
197 | | - { |
198 | | - this.clientSupports['videoElement'] = true; |
199 | | - } else { |
200 | | - /* could add some user nagging to install the xiph qt */ |
| 195 | + try{ |
| 196 | + var dummyvid = document.createElement("video"); |
| 197 | + if (dummyvid.canPlayType("video/ogg;codecs=\"theora,vorbis\"") == "probably") |
| 198 | + { |
| 199 | + this.clientSupports['videoElement'] = true; |
| 200 | + } else { |
| 201 | + /* could add some user nagging to install the xiph qt */ |
| 202 | + } |
| 203 | + }catch(e){ |
| 204 | + //could not use canPlayType |
201 | 205 | } |
202 | 206 | }else{ |
203 | 207 | this.clientSupports['videoElement'] = true; |