Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Progress Event Handler for XHR plugin
This is part 1 of conditionally aborting requests when network downgrading. 1. Add progress event handler for Http XHR Plugin, to get more frequent updates for network bandwidth estimate and suggest streams based on that. 2. When the plugin doesn't support progress event, call onProgressUpdated function after every segment is downloaded. 3. Replace onSegmentDownloaded with onProgressUpdated function in player.js and network_engine.js. 4. Since XHR Plugin supports progress event while Fetch doesn't, change the config to prefer XHR over Fetch API. Issue #1051. Change-Id: Icf6775dd3520fb2e359b13d29e3b39d3792fe865
- Loading branch information
1 parent
bf6fcf0
commit d6720cc
Showing
6 changed files
with
118 additions
and
41 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
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