diff options
author | Sam <me@sampotts.me> | 2016-05-23 19:16:48 +0100 |
---|---|---|
committer | Sam <me@sampotts.me> | 2016-05-23 19:16:48 +0100 |
commit | 69194915d4fa999d8f5584b9c2dbcfdb7e26d21c (patch) | |
tree | ab69691118dbc801e4ead7359a31e47b41b9528c /docs/src/js/docs.js | |
parent | 98e4c5aceadb8b6b50e03bef749efcfe8b6d58c7 (diff) | |
download | plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.tar.lz plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.tar.xz plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.zip |
Sprite loading improvements, touch controls
- SVG sprite loading automatically for an easier setup
- Touch devices now show controls on touch rather than pausing playback
Diffstat (limited to 'docs/src/js/docs.js')
-rw-r--r-- | docs/src/js/docs.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/src/js/docs.js b/docs/src/js/docs.js index 11cd6ac6..08557f76 100644 --- a/docs/src/js/docs.js +++ b/docs/src/js/docs.js @@ -8,6 +8,7 @@ plyr.setup('.js-media-player', { debug: true, title: 'Video demo', + iconUrl: '../dist/plyr.svg', tooltips: { controls: true }, @@ -15,6 +16,7 @@ plyr.setup('.js-media-player', { defaultActive: true } }); +plyr.loadSprite('dist/docs.svg'); // General functions (function() { |