Name updated

This commit is contained in:
Sam Potts
2015-02-17 01:07:02 +11:00
parent ce6917f313
commit c24df00af7
11 changed files with 26 additions and 33 deletions

View File

@ -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({})

View File

@ -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 || {}));
}(this.plyr = this.plyr || {}));