-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
micro-optimization: =================== * when all of the following are true: - the HLS manifest for a live stream is proxied - prefetch is enabled - the cache is empty * rather than: - immediately initiating (up to "--max-segments") parallel downloads to populate the cache, while the video player waits for the 1st video segment to become available * modify the order of downloads such that: - the 1st video segment in the manifest is immediately downloaded - once this 1st video segment is available, then all of the remaining (up to "--max-segments") in the manifest begin to download in parallel reason for change: ================== * this should reduce the latency when a live video first starts playing, since the 1st video segment downloads more quickly using all available bandwidth * when a batch of downloads occur in parallel, the available bandwidth is shared (more or less) equally; all downloads occur at a reduced rate, and complete at about the same time cross-reference: ================ * related discussion in issue #15
- Loading branch information
1 parent
37a4850
commit 75dab3f
Showing
3 changed files
with
29 additions
and
6 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