r52763 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52762‎ | r52763 | r52764 >
Date:06:35, 4 July 2009
Author:dale
Status:deferred
Tags:
Comment:
oggz_chop native support issues
Modified paths:
  • /branches/new-upload/phase3/js2/mwEmbed/libEmbedVideo/embedVideo.js (modified) (history)

Diff [purge]

Index: branches/new-upload/phase3/js2/mwEmbed/libEmbedVideo/embedVideo.js
@@ -816,6 +816,15 @@
817817 return true;
818818 }
819819 }
 820+ //set basic flash
 821+ for(var source=0; source < playable_sources.length; source++){
 822+ var mime_type =playable_sources[source].mime_type;
 823+ if( mime_type=='video/x-flv' ){
 824+ js_log('set via by player preference normal flash')
 825+ this.selected_source = playable_sources[source];
 826+ return true;
 827+ }
 828+ }
820829 //set Ogg via player support
821830 for(var source=0; source < playable_sources.length; source++){
822831 js_log('f:autoSelectSource:' + playable_sources[source].mime_type);
@@ -841,15 +850,6 @@
842851 return true;
843852 }
844853 }
845 - //set basic flash
846 - for(var source=0; source < playable_sources.length; source++){
847 - var mime_type =playable_sources[source].mime_type;
848 - if( mime_type=='video/x-flv' ){
849 - js_log('set via by player preference normal flash')
850 - this.selected_source = playable_sources[source];
851 - return true;
852 - }
853 - }
854854 //select first source
855855 if (!this.selected_source)
856856 {

Status & tagging log