]> git.parisson.com Git - teleforma.git/commitdiff
fix video time jump
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 25 Feb 2016 23:24:15 +0000 (00:24 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 25 Feb 2016 23:24:15 +0000 (00:24 +0100)
teleforma/templates/teleforma/seminar_media_video.html

index 4eec4b7a614a4517cf4ac5817dddfbda4ed6aab2..afd2cac9743c0c24209b8bc7738e740b1db91282 100644 (file)
@@ -158,12 +158,8 @@ $(window).ready(function(){
 
 // jump to time offset action using Media Fragments
 function jumpToTimeoffset(time) {
-    // Player.currentTime(time);
-    var video = $('#my_video_1');
     var Player = _V_("my_video_1");
-    var url = video.attr("src");
-    var abs_url = url.split("#")[0];
-    video.attr("src", abs_url + '#t=' + String(time));
+    Player.currentTime(time);
     Player.play();
 }