Add end marker continuation utility

This commit is contained in:
broquemonsieur
2023-08-06 00:59:53 -07:00
parent 510d85c045
commit f48083da33
8 changed files with 53 additions and 25 deletions

View File

@@ -209,8 +209,13 @@ if (video_data.params.video_start > 0 || video_data.params.video_end > 0) {
player.markers({
onMarkerReached: function (marker) {
if (marker.text === 'End')
player.loop() ? player.markers.prev('Start') : player.pause();
if (marker.text === 'End') {
if (video_data.ending_timestamp_seconds) {
player.currentTime(player.duration());
} else {
player.loop() ? player.markers.prev('Start') : player.pause();
}
}
},
markers: markers
});