-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix hung playback on rapid seek (#3479)
streaming_engine maintains a reference to ongoing fetch operations for video, audio and text segments. Using these references, the fetch operations may be cancelled (e.g. due to a seek). Immediately following a seek, fetch operations were started for init segments and media segments. Upon completion of the init segment operation the reference to the media segment operation was overwritten with null, so could not be cancelled. This was particularly evident on platforms where the seek bar is dragged, as this produces multiple seeks. When dragging backwards it was possible for the buffer to contain segments beyond the play head. The solution is to await completion of the init segment fetch before starting the media segment fetch. Fixed #3384
- Loading branch information
1 parent
0146ccd
commit f7facc0
Showing
4 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ Toshihiro Suzuki <[email protected]> | |
uStudio Inc. <*@ustudio.com> | ||
Verizon Digital Media Services <*@verizondigitalmedia.com> | ||
Vincent Valot <[email protected]> | ||
Wayne Morgan <[email protected]> | ||
Prakash <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,7 @@ Toshihiro Suzuki <[email protected]> | |
Vasanth Polipelli <[email protected]> | ||
Vignesh Venkatasubramanian <[email protected]> | ||
Vincent Valot <[email protected]> | ||
Wayne Morgan <[email protected]> | ||
Yohann Connell <[email protected]> | ||
Adrián Gómez Llorente <[email protected]> | ||
Prakash Duggaraju <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters