Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6812843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:29:55+00:00 2026-05-26T20:29:55+00:00

In HTML5 using JavaScript on a WEBM video I am trying to display a

  • 0

In HTML5 using JavaScript on a WEBM video I am trying to display a moving shape on specified time intervals. To determine these time intervals I am using the setTimeout(func, 0) method which returns the current time of the video:

            func() {
                var time = $gVideo.attr('currentTime');
                setTimeout(func, 0);
            }

The problem I encounter is that on different browsers the readings varies a lot.
For example Firefox would return:

            [0,10,90,130,210,220,250,340,460,590,760,960,1090,1220,1430,1550,1760,1880,2010,2060,2090,2130,2170,2220,2260,30130,30140,30200,30260,30290,30410,30580,30750,30990,31040,31160,31240,31290,31410,31500,31530,31560] – irregular increments 

Chrome:

            [10,20,30,40 …. 31560] – multiples of 10

Opera:

            [0,10,20,30,40,50,140,230,340,430,520,710,870,1030,1220,1290,1460,1550,1720,1820,1980,1990,2170,2260,2420,2600,2760,2850,3010,3110,3290,3370,3560,3640,3800, …. 31560] – irregular increments

Since it’s critical in all the browsers to get the same results like in Chrome, please advise where the flaw in my implementation is. Can be such a big difference in the time values returned by the video implementations in the browsers or it’s a timer problem in JavaScript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:29:56+00:00Added an answer on May 26, 2026 at 8:29 pm

    You should not use setTimeout in this case, please try to handle timeupdate event of the video element and get currentTime inside the handler

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a site using HTML5's video tag so that I can
I am trying to draw some shapes on the HTML5 canvas using Javascript. When
Im using JavaScript, the HTML5 canvas-element and WebGL to make a simple 3D-game in
HTML5 draft contains an API called EventSource to stream data (notifications) trough javascript using
I'm generating HTML elements on the fly using javascript. These controls are located within
I'm creating a whiteboard application using SVG in HTML5, and javascript to manipulate the
I need to code some complicated web page with new html5 features, using javascript
Is it possible to, using javascript, either create video data on the fly, or
I wants to read live streaming data using Javascript or HTML5. Is it possible
I have made a game using HTML5 Canvas Element, Javascript for facebook. You can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.