Index: branches/new-upload/phase3/js2/mwEmbed/libEmbedVideo/embedVideo.js |
— | — | @@ -1276,16 +1276,21 @@ |
1277 | 1277 | return false; |
1278 | 1278 | } |
1279 | 1279 | } |
1280 | | - //see if we are using a fallback (in which case it does not matter) |
| 1280 | + //see if we are using mv_embed without a ogg source in which case no point in promoting firefox :P |
1281 | 1281 | if(this.media_element && this.media_element.sources){ |
| 1282 | + var foundOgg = false; |
1282 | 1283 | var playable_sources = this.media_element.getPlayableSources(); |
1283 | 1284 | for(var sInx=0; sInx < playable_sources.length; sInx++){ |
1284 | 1285 | var mime_type = playable_sources[sInx].mime_type; |
1285 | | - if( mime_type=='video/h264' || mime_type=='video/x-flv'){ |
| 1286 | + if( mime_type=='video/ogg' ){ |
1286 | 1287 | //they have flash / h.264 fallback no need to push firefox :( |
1287 | | - return false; |
| 1288 | + foundOgg = true; |
1288 | 1289 | } |
1289 | | - } |
| 1290 | + } |
| 1291 | + //no ogg no point in download firefox :( |
| 1292 | + if(!foundOgg) |
| 1293 | + return false; |
| 1294 | + |
1290 | 1295 | } |
1291 | 1296 | } |
1292 | 1297 | return true; |