Added clickToPause option
This commit is contained in:
parent
0190e161b6
commit
caeb63f197
@ -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();
|
||||
|
2
dist/js/simple-media.js
vendored
2
dist/js/simple-media.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user