Plyr: How to get Current time of a playing custom video

Created on 28 Jun 2016  路  6Comments  路  Source: sampotts/plyr

Is there any method to get the current playback time of the video

Feature

Most helpful comment

@a-barbieri: It's player.currentTime now and the documentation is at the github page.

All 6 comments

I'll write a wrapper for this - HTML5 is easy but it'd be good to wrap them all into one API method.

Currently, is there a way to get the progress in seconds?

Just push version 1.8.8 with a new API method getCurrentTime which will return the currentTime in seconds (as a float). This works with all media types.

Real developers code on weekends. Thanks a bunch!

Is there any documentation about it?

@a-barbieri: It's player.currentTime now and the documentation is at the github page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fleps picture fleps  路  43Comments

Antonio-Laguna picture Antonio-Laguna  路  19Comments

louie-senpai picture louie-senpai  路  23Comments

lukeyouell picture lukeyouell  路  27Comments

ghost picture ghost  路  30Comments