Added clickToPause option
This commit is contained in:
parent
0190e161b6
commit
caeb63f197
@ -25,6 +25,7 @@
|
|||||||
debug: false,
|
debug: false,
|
||||||
seekInterval: 10,
|
seekInterval: 10,
|
||||||
volume: 5,
|
volume: 5,
|
||||||
|
clickToPause: true,
|
||||||
selectors: {
|
selectors: {
|
||||||
container: ".player",
|
container: ".player",
|
||||||
controls: ".player-controls",
|
controls: ".player-controls",
|
||||||
@ -689,7 +690,7 @@
|
|||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
// Click video
|
// Click video
|
||||||
if(player.type === "video") {
|
if(player.type === "video" && config.clickToPause) {
|
||||||
player.videoContainer.addEventListener("click", function() {
|
player.videoContainer.addEventListener("click", function() {
|
||||||
if(player.media.paused) {
|
if(player.media.paused) {
|
||||||
play();
|
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