clr commited on
Commit
bc7cad0
1 Parent(s): 0df8086

Update js/js.php

Browse files
Files changed (1) hide show
  1. js/js.php +8 -0
js/js.php CHANGED
@@ -42,7 +42,15 @@ $(function (){
42
  else {
43
  var newTime = $(this).attr("beg");
44
  vid.currentTime = newTime / 1000;
 
45
  vid.play();
 
 
 
 
 
 
 
46
  }
47
 
48
 
 
42
  else {
43
  var newTime = $(this).attr("beg");
44
  vid.currentTime = newTime / 1000;
45
+
46
  vid.play();
47
+
48
+ var segmentDur = $(this).attr("end") - newTime
49
+
50
+ setTimeout(function(){
51
+ document.getElementById('speakera').pause();
52
+ }, segmentDur);
53
+
54
  }
55
 
56