Index: branches/MetavidWiki-exp/MetavidWiki/skins/mv_embed/mv_vlcEmbed.js |
— | — | @@ -60,8 +60,8 @@ |
61 | 61 | this.vlc.style.width=this.width; |
62 | 62 | this.vlc.style.height=this.height; |
63 | 63 | 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); |
66 | 66 | if( itemId != -1 ){ |
67 | 67 | //play |
68 | 68 | this.vlc.playlist.playItem(itemId); |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | if( this.mediaLen > 0 || this.vlc.input.time > 0){ |
186 | 186 | ///set mediaLen via request Url |
187 | 187 | if(this.mediaLen==0) |
188 | | - this.mediaLen=this.getDuration(); |
| 188 | + this.mediaLen=this.media_element.selected_source.duration; |
189 | 189 | //if we have media lenghth procceed |
190 | 190 | if(this.mediaLen){ |
191 | 191 | //as long as the user is not interacting with the playhead update: |