-
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 end of stream detection on IE & Edge
PlayheadObserver has to know when the stream has been fully buffered. It did this based on duration and the buffered ranges, but that required the use of a fudge factor and caused false negatives on IE & Edge. Instead, use MediaSource's readyState attribute to decide when we've buffered to the end. This way, IE & Edge do not go into a buffering state when the discrepancy between audio & video sizes is larger than an arbitrary fudge factor. Closes #913 Backported to v2.1.x Change-Id: I307dce12a883201a88a18bf5b9a84f954a1c5033
- Loading branch information
1 parent
87b40b1
commit f0e89a7
Showing
3 changed files
with
40 additions
and
27 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
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