aboutsummaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-02-17 14:54:39 +1100
committerSam Potts <me@sampotts.me>2015-02-17 14:54:39 +1100
commita39bbec1fd2826f3373b8e3f8260e86f8eedf522 (patch)
treedf4f52bdf0c61c783bf3cfd91b8c501da31bfa3c /assets/js
parent61fe24e0bfaac14f7e77046b236cf2e32be184a2 (diff)
downloadplyr-a39bbec1fd2826f3373b8e3f8260e86f8eedf522.tar.lz
plyr-a39bbec1fd2826f3373b8e3f8260e86f8eedf522.tar.xz
plyr-a39bbec1fd2826f3373b8e3f8260e86f8eedf522.zip
Proper readme docs
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/docs.js5
-rw-r--r--assets/js/plyr.js12
2 files changed, 8 insertions, 9 deletions
diff --git a/assets/js/docs.js b/assets/js/docs.js
index 25b83d9d..89803ee2 100644
--- a/assets/js/docs.js
+++ b/assets/js/docs.js
@@ -8,5 +8,8 @@
plyr.setup({
debug: true,
title: "Video demo",
- html: templates.controls.render({})
+ html: templates.controls.render({}),
+ captions: {
+ defaultActive: true
+ }
}); \ No newline at end of file
diff --git a/assets/js/plyr.js b/assets/js/plyr.js
index d589ce34..c1049210 100644
--- a/assets/js/plyr.js
+++ b/assets/js/plyr.js
@@ -6,10 +6,6 @@
// Credits: http://paypal.github.io/accessible-html5-video-player/
// ==========================================================================
-// Replace browser sniff with feature detection
-// http://diveintohtml5.info/everything.html
-//
-
/*global ActiveXObject*/
(function (api) {
@@ -20,11 +16,11 @@
// Default config
var defaults = {
- enabled: true, // /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
+ enabled: true,
debug: false,
seekInterval: 10,
volume: 5,
- clickToPause: true,
+ click: true,
selectors: {
container: ".player",
controls: ".player-controls",
@@ -58,7 +54,7 @@
}
},
captions: {
- defaultActive: true
+ defaultActive: false
},
fullscreen: {
enabled: true
@@ -756,7 +752,7 @@
_on(player.buttons.fullscreen, "click", _toggleFullscreen);
// Click video
- if(player.type === "video" && config.clickToPause) {
+ if(player.type === "video" && config.click) {
_on(player.videoContainer, "click", function() {
if(player.media.paused) {
_play();