r63804 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63803‎ | r63804 | r63805 >
Date:06:04, 16 March 2010
Author:dale
Status:deferred
Tags:
Comment:
* added source type for people who mistaking identify video/theora mime.
Modified paths:
  • /branches/js2-work/phase3/js/mwEmbed/modules/EmbedPlayer/mw.EmbedPlayer.js (modified) (history)

Diff [purge]

Index: branches/js2-work/phase3/js/mwEmbed/modules/EmbedPlayer/mw.EmbedPlayer.js
@@ -999,7 +999,12 @@
10001000 mw.log( 'f:autoSelectSource:' + playableSources[source].mimeType );
10011001 var mimeType = playableSources[source].mimeType;
10021002 // set source via player
1003 - if ( mimeType == 'video/ogg' || mimeType == 'ogg/video' || mimeType == 'video/annodex' || mimeType == 'application/ogg' ) {
 1003+ if ( mimeType == 'video/ogg'
 1004+ || mimeType == 'ogg/video'
 1005+ || mimeType == 'video/annodex'
 1006+ || mimeType == 'application/ogg'
 1007+ || mimeType == 'video/theora'
 1008+ ) {
10041009 for ( var i = 0; i < mw.EmbedTypes.players.players.length; i++ ) { // for in loop on object oky
10051010 var player = mw.EmbedTypes.players.players[i];
10061011 if ( player.library == 'vlc' || player.library == 'native' ) {

Status & tagging log