r36586 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36585‎ | r36586 | r36587 >
Date:21:46, 23 June 2008
Author:stipe
Status:old
Tags:
Comment:
vlc now partly works with new framework
Modified paths:
  • /branches/MetavidWiki-exp/MetavidWiki/skins/mv_embed/mv_vlcEmbed.js (modified) (history)

Diff [purge]

Index: branches/MetavidWiki-exp/MetavidWiki/skins/mv_embed/mv_vlcEmbed.js
@@ -60,8 +60,8 @@
6161 this.vlc.style.width=this.width;
6262 this.vlc.style.height=this.height;
6363 this.vlc.playlist.items.clear();
64 - js_log('play:' + this.src);
65 - var itemId = this.vlc.playlist.add(this.src);
 64+ js_log('vlc play:' + this.media_element.selected_source.uri);
 65+ var itemId = this.vlc.playlist.add(this.media_element.selected_source.uri);
6666 if( itemId != -1 ){
6767 //play
6868 this.vlc.playlist.playItem(itemId);
@@ -184,7 +184,7 @@
185185 if( this.mediaLen > 0 || this.vlc.input.time > 0){
186186 ///set mediaLen via request Url
187187 if(this.mediaLen==0)
188 - this.mediaLen=this.getDuration();
 188+ this.mediaLen=this.media_element.selected_source.duration;
189189 //if we have media lenghth procceed
190190 if(this.mediaLen){
191191 //as long as the user is not interacting with the playhead update:

Status & tagging log