Commit 9c495de 1 parent b7bb26b commit 9c495de Copy full SHA for 9c495de
File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export default class GapController {
77
77
// Clear stalled state when beginning or finishing seeking so that we don't report stalls coming out of a seek
78
78
if ( beginSeek || seeked ) {
79
79
this . stalled = null ;
80
+ return ;
80
81
}
81
82
82
83
// The playhead should not be moving
Original file line number Diff line number Diff line change @@ -557,6 +557,17 @@ export default class StreamController
557
557
this . log ( `Media seeked to ${ ( currentTime as number ) . toFixed ( 3 ) } ` ) ;
558
558
}
559
559
560
+ // If seeked was issued before buffer was appended do not tick immediately
561
+ const bufferInfo = this . getMainFwdBufferInfo ( ) ;
562
+ if ( bufferInfo === null || bufferInfo . len === 0 ) {
563
+ this . warn (
564
+ `Main forward buffer length on "seeked" event ${
565
+ bufferInfo ? bufferInfo . len : 'empty'
566
+ } )`
567
+ ) ;
568
+ return ;
569
+ }
570
+
560
571
// tick to speed up FRAG_CHANGED triggering
561
572
this . tick ( ) ;
562
573
}
You can’t perform that action at this time.
0 commit comments