Index: branches/new-upload/phase3/js2/mwEmbed/libEmbedVideo/embedVideo.js |
— | — | @@ -816,6 +816,15 @@ |
817 | 817 | return true; |
818 | 818 | } |
819 | 819 | } |
| 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 | + } |
820 | 829 | //set Ogg via player support |
821 | 830 | for(var source=0; source < playable_sources.length; source++){ |
822 | 831 | js_log('f:autoSelectSource:' + playable_sources[source].mime_type); |
— | — | @@ -841,15 +850,6 @@ |
842 | 851 | return true; |
843 | 852 | } |
844 | 853 | } |
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 | | - } |
854 | 854 | //select first source |
855 | 855 | if (!this.selected_source) |
856 | 856 | { |