Computing this.player.getCurrentTime()
See original GitHub issueHi, thanks a lot for this wrapper for the Youtube API.
I’m having some trouble figuring out how to display a timestamp in my UI that updates as the video is playing (00:01, …), because using setTimeout
doesn’t work due to this.player.getCurrentTime()
being a Promise.
Any idea on how to do this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
getCurrentTime() for YouTube Video
I'm writing a Chrome Extension in Javascript and I want to get the current time for the playing video on ...
Read more >YouTube Player API Reference for iframe Embeds
This function loads the specified video's thumbnail and prepares the player to play the video. The player does not request the FLV until...
Read more >Youtube Player API issue - help
I have a page on my app where i have the Youtube Player APi to see youtube ... Template.player.events({ 'click #play-btn': function() {...
Read more >How to Control YouTube's Video Player with JavaScript
getCurrentTime() )); $('#duration').text(formatTime( player.getDuration() )); } function formatTime(time){ time = Math.round(time); var minutes ...
Read more >Why does the currentTime seem off in my livestream & ...
To calculate the currentTime, THEOplayer follows the HTML5 specification. However, for livestreams, this is not specified. Hence, if you try to use currentTime...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sergiocastrovale , try:
@anteriovieira that worked perfectly. Thanks a lot!