Skip to content

Commit 4217dfe

Browse files
committed
fix(player): seekable end of clipped videos is incorrect
1 parent f464edf commit 4217dfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vidstack/src/core/api/player-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const mediaState = new State<MediaState>({
118118
get seekableEnd() {
119119
const end = this.canPlay ? getTimeRangesEnd(this.seekable) ?? Infinity : 0;
120120
return this.clipEndTime > 0
121-
? Math.min(this.clipEndTime, Math.max(0, end - this.clipStartTime))
121+
? Math.max(this.clipEndTime, Math.max(0, end - this.clipStartTime))
122122
: end;
123123
},
124124
get seekableWindow() {

0 commit comments

Comments
 (0)