diff options
author | Sam Potts <me@sampotts.me> | 2017-10-02 13:55:03 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2017-10-02 13:55:03 +1100 |
commit | 6dd010ea34bc4e8385e2a20807031f20e5a52e37 (patch) | |
tree | 90fc17f60c5803a590d5935c79591099bb2375e7 /src/js | |
parent | 2bba1f30e28f402ef96b5f5181dd75788b0e25c9 (diff) | |
download | plyr-6dd010ea34bc4e8385e2a20807031f20e5a52e37.tar.lz plyr-6dd010ea34bc4e8385e2a20807031f20e5a52e37.tar.xz plyr-6dd010ea34bc4e8385e2a20807031f20e5a52e37.zip |
Comments, small tweaks
Diffstat (limited to 'src/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; |