r36475 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36474‎ | r36475 | r36476 >
Date:18:22, 19 June 2008
Author:dale
Status:old
Tags:
Comment:
merged changes from stipe multi-stream support
Modified paths:
  • /branches/MetavidWiki-exp/MetavidWiki/skins/mv_embed/mv_embed.js (modified) (history)

Diff [purge]

Index: branches/MetavidWiki-exp/MetavidWiki/skins/mv_embed/mv_embed.js
@@ -21,6 +21,7 @@
2222 //whether or not to load java from an iframe.
2323 //note: this is necessary for remote embedding because of java security model)
2424 var mv_java_iframe = true;
 25+var ogg_chop_links = true;
2526 //media_server mv_embed_path (the path on media servers to mv_embed for java iframe with leading and trailing slashes)
2627 var mv_media_iframe_path = '/mv_embed/';
2728
@@ -1733,10 +1734,11 @@
17341735 var out='<b style="color:white;">'+getMsg('download_from')+' '+parseUri(this.src).queryKey['t']+'</b><br>';
17351736 out+='<span style="color:white"><blockquote>';
17361737 var dl_list=dl_txt_list='';
1737 - $j.each(this.media_element.getSources(), function(index, source)
1738 - {
1739 - var dl_line = '<li>' + transform_function(index, source) + '</li>'+"\n";
1740 - if(this.getMIMEType()=="video/ogg"){
 1738+ $j.each(this.roe_xml.getElementsByTagName('mediaSource'), function(inx,n){
 1739+ var dl_line = '<li><a style="color:white" href="'
 1740+ dl_line+=(ogg_chop_links)?n.getAttribute("src").replace(".anx", ''):n.getAttribute("src");
 1741+ dl_line+='"> '+n.getAttribute("title")+'</a></li>'+"\n";
 1742+ if(n.getAttribute("content-type")=="video/ogg"){
17411743 out+=dl_line;
17421744 }else if(this.getMIMEType()=="text/cmml"){
17431745 dl_txt_list+=dl_line;

Status & tagging log