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 9069741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:30:33+00:00 2026-06-16T17:30:33+00:00

I know how to get the current elapsed time of a youtube video using…

  • 0

I know how to get the current elapsed time of a youtube video using…

player.getCurrentTime()

But I need a way to show this as updating text inside an element so I can display the current time of the youtube video counting while the video is playing. What’s the correct way to do this preferably using jquery?

  • 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-06-16T17:30:34+00:00Added an answer on June 16, 2026 at 5:30 pm

    If the player doesn’t offer a callback when the seconds roll over, you could still poll the current time. Choosing the correct polling frequency is a performance trade-off, but you don’t really need to crank it up:

    setInterval(function(){
       display.innerText = player.getCurrentTime();
    },100); //polling frequency in miliseconds
    

    jQuery does not really simplify the waiting but you can use it for DOM manipulation:

    setInterval(function(){
       $display.text(player.getCurrentTime());
    },100); //polling frequency in miliseconds
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get current user location but I don't know if it has
I know how to get the current date and time in mfc.but I want
after i get current device time by using [NSDate date], how do i know
I know how to get a current date. but I want it to display
I know you can do this.GetType().FullName To get My.Current.Class But what can I call
I am able to get the current date, but I don't know how to
I am using Nokogiri to analyze some HTML, but, I don't know how get
I am using MapKit. I want to know how to get current user's location.
I know how to get in SQL (SQL Server) the current date, but with
I wanted to know how to get current date and time and what datatype

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.