Index: branches/MetavidWiki-exp/MetavidWiki/skins/mv_embed/mv_embed.js |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | //whether or not to load java from an iframe. |
23 | 23 | //note: this is necessary for remote embedding because of java security model) |
24 | 24 | var mv_java_iframe = true; |
| 25 | +var ogg_chop_links = true; |
25 | 26 | //media_server mv_embed_path (the path on media servers to mv_embed for java iframe with leading and trailing slashes) |
26 | 27 | var mv_media_iframe_path = '/mv_embed/'; |
27 | 28 | |
— | — | @@ -1733,10 +1734,11 @@ |
1734 | 1735 | var out='<b style="color:white;">'+getMsg('download_from')+' '+parseUri(this.src).queryKey['t']+'</b><br>'; |
1735 | 1736 | out+='<span style="color:white"><blockquote>'; |
1736 | 1737 | 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"){ |
1741 | 1743 | out+=dl_line; |
1742 | 1744 | }else if(this.getMIMEType()=="text/cmml"){ |
1743 | 1745 | dl_txt_list+=dl_line; |