Start playback of edited segment at it's end when it starts 0:00

This commit is contained in:
mini-bomba
2022-04-15 22:31:46 +02:00
parent 8aa10605c5
commit e3f6242e5f

View File

@@ -532,6 +532,11 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
const index = this.props.index;
const skipTime = sponsorTimes[index].segment[0];
// If segment starts at 0:00, start playback at the end of the segment
if (skipTime === 0) {
this.props.contentContainer().previewTime(sponsorTimes[index].segment[1]);
return;
}
let seekTime = 2;
if (ctrlPressed) seekTime = 0.5;