From 3c9e9862d8183d8d20494b69d391fbe7ac38ff85 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 10 Jul 2016 20:58:19 +1000 Subject: Added getCurrentTime API method (fixes #292) --- src/js/plyr.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/plyr.js b/src/js/plyr.js index 6198c79a..1834e1c0 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -3264,7 +3264,8 @@ isFullscreen: function() { return plyr.isFullscreen || false; }, support: function(mimeType) { return _supportMime(plyr, mimeType); }, destroy: _destroy, - restore: _init + restore: _init, + getCurrentTime: function() { return plyr.media.currentTime; } }; } -- cgit v1.2.3