diff options
author | Sam Potts <me@sampotts.me> | 2015-02-17 01:07:02 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-02-17 01:07:02 +1100 |
commit | c24df00af7bc8c989da341ec253443e5faf5dc4e (patch) | |
tree | 78e59ba013a3820dc191aa10df5a240711d889c6 /assets/js | |
parent | ce6917f31342954c5d0332df7e161beae65fbaa6 (diff) | |
download | plyr-c24df00af7bc8c989da341ec253443e5faf5dc4e.tar.lz plyr-c24df00af7bc8c989da341ec253443e5faf5dc4e.tar.xz plyr-c24df00af7bc8c989da341ec253443e5faf5dc4e.zip |
Name updated
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/docs.js | 4 | ||||
-rw-r--r-- | assets/js/plyr.js (renamed from assets/js/simple-media.js) | 20 |
2 files changed, 9 insertions, 15 deletions
diff --git a/assets/js/docs.js b/assets/js/docs.js index 3527a8b2..25b83d9d 100644 --- a/assets/js/docs.js +++ b/assets/js/docs.js @@ -2,10 +2,10 @@ // Docs example // ========================================================================== -/*global simpleMedia, templates */ +/*global plyr, templates */ // Setup the player -simpleMedia.setup({ +plyr.setup({ debug: true, title: "Video demo", html: templates.controls.render({}) diff --git a/assets/js/simple-media.js b/assets/js/plyr.js index 3df0fbb4..21727615 100644 --- a/assets/js/simple-media.js +++ b/assets/js/plyr.js @@ -1,7 +1,7 @@ // ========================================================================== -// Simple Media Player -// simple-media.js v1.0.0 -// https://github.com/sampotts/simple-media +// Plyr +// plyr.js v1.0.0 +// https://github.com/sampotts/plyr // ========================================================================== // Credits: http://paypal.github.io/accessible-html5-video-player/ // ========================================================================== @@ -14,9 +14,6 @@ // Globals var fullscreen, config; - // Handler cache - var handlers = {}; - // Default config var defaults = { enabled: true, // /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) @@ -291,7 +288,7 @@ } // Player instance - function Player(container) { + function Plyr(container) { var player = this; player.container = container; @@ -946,11 +943,8 @@ // Get the current element var element = elements[i]; - // Setup a player instance - var player = new Player(element); - - // Add the player object to the element - element.player = player; + // Setup a player instance and add to the element + element.plyr = new Plyr(element); } } -}(this.simpleMedia = this.simpleMedia || {}));
\ No newline at end of file +}(this.plyr = this.plyr || {}));
\ No newline at end of file |