Shanaka
Shanaka

Reputation: 1738

HTML 5 video player doesn't allow to drag the player time line

I have created a web app using HTML5. There is a screen where I need to add videos dynamically to the webapp. I use HTML 5 video player for this and particular code is shown below. When the video is playing for the first time if I try to drag the time line of the player it won't functioning correctly. Instead it goes again back to the same previous position and continues to play the video. If video has been played at least once (if it is cached) I can drag the time line any where I want and video is starting to play from that particular time. Is there anyway that I can add this functionality when I'm loading it for the 1st time? Is there any specific HTML5 attribute for it?

<!DOCTYPE html>
 <html>
  <body>

    <video controls="" autoplay="" name="media">
      <source src="video url goes here" type="video/mp4">
    </video>

  </body>
</html>

Upvotes: 0

Views: 1047

Answers (1)

Monstieur
Monstieur

Reputation: 8112

No. Most browsers' players are still broken as far as direct URLs to videos are concerned. You'd have to implement a custom player and controls which starts streaming a new video and the server side takes a parameter such as ?time=xxx and returns the video starting from that point.

Upvotes: 0

Related Questions