0

I have Drupal 7 with the video module installed using ffmpeg. The video is playing fine. However, I noticed that users can only play from the beginning of the video. I would like to have users play from any specific time.

The embed video field module is only for embedding other videos so does not suit my needs.

1 Answer 1

0

May be you can try with javascript

document.getElementById('YOURVIDEOID').addEventListener('loadedmetadata', function() {
  this.currentTime = 50;
}, false);

In jquery

var vid = $("#video")[0];
$("#button").click(function(){
    skipTime(100);
});

function skipTime(time) {
    vid.play();
    vid.pause();
    vid.currentTime = time;
    vid.play();
};
1
  • How do I add listener to the clicked event and get the selected time from my video?
    – xelat
    Aug 9, 2017 at 3:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.