add option to pause clips after play

This commit is contained in:
j 2021-10-13 17:12:16 +01:00
parent 40b2e06c83
commit 402ff40766

View file

@ -110,10 +110,14 @@ function timeupdate(event) {
event.target.pause() event.target.pause()
} }
*/ */
if (config.pause) {
event.target.pause()
} else {
event.target.currentTime = in_ event.target.currentTime = in_
} }
} }
} }
}
function formatInfo(config, ascroll) { function formatInfo(config, ascroll) {
var h1 = document.createElement('h1') var h1 = document.createElement('h1')