Home > Html5 Video > Html5 Video Currenttime Not Working

Html5 Video Currenttime Not Working

Contents

share|improve this answer answered Sep 17 '13 at 1:39 Paul S. 36.1k24273 Hi Paul, thanks very much for your answer. Thanks in advance javascript html5 video html5-video share|improve this question asked Nov 27 '13 at 10:37 Yises 1891114 add a comment| 4 Answers 4 active oldest votes up vote 17 down Auto play the video from the position they last played. People have reported several workarounds in that thread above, but I couldn't get any of them to work. this contact form

Not the answer you're looking for? on ios6 it seems to just ignore the call to currentTime(). Thanks for the great help, onloadedmetadata instead of just onload worked fine! Reload to refresh your session. http://stackoverflow.com/questions/20240088/issue-setting-currenttime-in-html5-video

Video Currenttime Not Working In Chrome

I don't think you can get rid of it fully. Sep 17 '13 at 1:21 Sorry about that, I just typed it out wrong on here. I like to develop in Ruby on Rails with jquery. I was having similar problems with Firefox 3.5 and found this solution with Silvia's help.

follow @grio_sf on twitter Categories Agile (15) Android (6) Design (29) Development (32) Games (11) Git (5) Grio (52) Healthcare (2) iOS (7) IoT (3) Misc (86) Mobile (49) Server (23) Reload to refresh your session. In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms Jquery Video Currenttime The time should be set like this: function settime(){ var video = document.getElementById("video"); console.log(video.currentTime); //----->output for example 15.3 video.currentTime = 10.0; console.log(video.currentTime);//----->>output always 0 } And the video is embedded like

Is there a chance that this is a hardware issue? –chuls Sep 17 '13 at 2:38 As the video plays, albeit from the wrong position, I don't see how Effect of pH on Dilution of HCl Solution Plural acronym verb form: "PGCs stand for" vs. "PGCs stands for" Why do most microwaves open from the right to the left? I must shamefully admit, I only now tried the demo in Firefox and found that it works as expected in there. –chuls Sep 17 '13 at 4:45 add a comment| up great post to read I generated my sequence data with PHP out of a database.

Why is で used here? Html5 Video Set Time Reply silviareplied: View June 29, 2012 @Cole I've updated your JS and if you open the inspector, you will see what is happening with the console.logs. Namely, I have a video and I want to be able to start the video at a certain time and then have it pause after a certain duration of time has more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Html5 Video Set Current Time

Reply Dhimant View April 26, 2012 Hello, i need a favor, I am working woth HATML5 with Video element. pop over to these guys more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Video Currenttime Not Working In Chrome more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Html5 Video Currenttime Milliseconds At the moment I'm doing all this offline, so the actual downloading times are not an issue for me yet.

I tested this with videojs today, as that was the only browser throwing the issue, then switched to the standard HTML5 video player, and ran into the same issue. weblink Reply Cole View June 29, 2012 @silvia okay, that makes sense. E.g. Video always starts from beginning in mobile. Html5 Video Currenttime Event

Reply silvia View January 25, 2010 @Thomas, you could try simply replacing the "onload" attribute with a "onloadedmetadata" - that might do the trick. Already have an account? To jump to a time offset in a video, all you have to do in javascript is:
var video = document.getElementsByTagName("video")[0];
video.currentTime = starttimeoffset;
timeupdate Further, if navigate here I only want to buffer(load) the portion of the video needed. (e.g.

The problem could be related to other parts not shown here. Html5 Video Get Current Time Several other efforts are being made, too. What is this line of counties voting for the Democratic party in the 2016 elections?

Reload to refresh your session.

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Isn't 5Ghz band affected with channel overlapping? I really needed it ! Fastseek Html5 It may well be different across browser implementations, though. –Paul S.

Did you do that on document ready? –MrUpsidown Jan 15 '15 at 14:12 possible duplicate of Setting HTML5 audio position –yassinphilip Aug 13 '15 at 12:18 add a comment| According to the HTML5 specification, you need to wait until the video is loaded, i.e. Required fields are marked *Comment Name * Email * Website Notify me of follow-up comments by email. his comment is here video = document.getElementById('video'); begin_play = 50; play_video_frist = true; //if you want to run only frist time video.addEventListener("play", capture, false); function capture(event) { if (event.type == "play"){ if(play_video_frist){ play_video_frist = false;

scripts) when you hit those points?" with taking a quick look at this link I don't see why not? The following thread suggests that Chrome can't handle partial content requests: stackoverflow.com/questions/8088364/html5-video-will-not-loo‌p . I've been working with HTML5 for a few months and my application ties in closely with the timeupdate function. mmcc closed this Jul 11, 2014 Sign up for free to join this conversation on GitHub.

You can get inspiration from http://annodex.net/~silvia/itext/mediafrag.html . (Though: I believe there is a bug in there that ignores subseconds). How can I create an image with a round globe like center? You signed in with another tab or window. If one needs to seek a video to a specific time, one can do something like this: HTML:

Why is this an invalid left hand side assignment? It all depends on your needs and preferences. The URI addressing scheme can accommodate it. I can't really post an example, i am building a site now and it only on localhost at the moment, but here is the js i am using.