Merge pull request #1284 from mini-bomba/segmentEditPreview-patch1

Start playback of edited segment at it's end when it starts 0:00
This commit is contained in:
Ajay Ramachandran
2022-04-19 13:42:58 -04:00
committed by GitHub

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;