diff options
author | Jagua | 2015-05-01 01:16:07 +0900 |
---|---|---|
committer | Jagua | 2015-05-01 01:16:07 +0900 |
commit | b483a357eaffbc572be5d4da973e68fa25804a13 (patch) | |
tree | 3e3b0e35f1553ef8eb3ed2be6a441b0b2deef957 /video-controller.js | |
parent | cf258d705c7002bf3a7d36a2e358715d45da64ef (diff) | |
download | vimperator-plugins-b483a357eaffbc572be5d4da973e68fa25804a13.tar.bz2 |
revert "play" and "pause".
Diffstat (limited to 'video-controller.js')
-rw-r--r-- | video-controller.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video-controller.js b/video-controller.js index facc0cb..9df5b55 100644 --- a/video-controller.js +++ b/video-controller.js @@ -86,6 +86,12 @@ let INFO = xml` let lastCommand = null; let controlls = { __proto__: null, + play: function (elem) { + elem.play(); + }, + pause: function (elem) { + elem.pause(); + }, playOrPause: function (elem) { elem.paused ? elem.play() : elem.pause(); }, |