Added clickToPause option

This commit is contained in:
Sam Potts 2015-02-15 14:41:03 +11:00
parent 0190e161b6
commit caeb63f197
2 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@
debug: false,
seekInterval: 10,
volume: 5,
clickToPause: true,
selectors: {
container: ".player",
controls: ".player-controls",
@ -689,7 +690,7 @@
}, false);
// Click video
if(player.type === "video") {
if(player.type === "video" && config.clickToPause) {
player.videoContainer.addEventListener("click", function() {
if(player.media.paused) {
play();

File diff suppressed because one or more lines are too long