diff options
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index db17ad00..3b76fcc0 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -5,6 +5,7 @@ // License: The MIT License (MIT) // ========================================================================== +// UMD-Inspired JS Module from https://gist.github.com/wilmoore/3880415 (function(name, context, definition) { /* global define,module,require */ 'use strict'; @@ -4845,6 +4846,11 @@ return toggle; }; + // Get playback status + Plyr.prototype.isPlaying = function() { + return !this.media.paused; + }; + // Stop Plyr.prototype.stop = function() { var player = this; |