Merge pull request #476 from ajayyy/expiremental

Improvements
This commit is contained in:
Ajay Ramachandran
2020-09-16 13:54:02 -04:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -992,11 +992,11 @@ function getStartTimes(sponsorTimes: SponsorTime[], includeIntersectingSegments:
*
* @param time
*/
function previewTime(time: number) {
function previewTime(time: number, unpause = true) {
video.currentTime = time;
// Unpause the video if needed
if (video.paused){
if (unpause && video.paused){
video.play();
}
}