-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use data saver mode signal to inform ABR decisions #855
Comments
Moving this to the backlog, since it does not appear to be available from the browser yet. |
This should be available now, so we just need to decide how our behavior will differ when the user enables data-saver mode. |
When the browser indicates that we should save data, we will default AbrManager's restrictions object to a max height of 360. Apps can still override this, and users can still select higher resolution tracks when ABR is disabled. The restrictions object will be treated as "soft" restrictions, meaning that if the restrictions cannot be met, we will not fail playback. |
This change makes restrictions on AbrManager into "soft" restrictions. This means that if these restrictions cannot be met, AbrManager will still choose something instead of throwing an error. This is in contrast to top-level restrictions or DRM-based restrictions, which are "hard" restrictions that will stop playback if necessary. This change also fixes some minor issues with the SimpleAbrManager tests, such as cross-test pollution in the restrictions object. This is a lead-in to issue #855, where AbrManager's restrictions will have their defaults changed when the "saveData" signal is present in the browser. Change-Id: Icdb2ff5df7ceb0d94f1267bf81e59dede3c2baf9
This change makes restrictions on AbrManager into "soft" restrictions. This means that if these restrictions cannot be met, AbrManager will still choose something instead of throwing an error. This is in contrast to top-level restrictions or DRM-based restrictions, which are "hard" restrictions that will stop playback if necessary. This change also fixes some minor issues with the SimpleAbrManager tests, such as cross-test pollution in the restrictions object. This is a lead-in to issue #855, where AbrManager's restrictions will have their defaults changed when the "saveData" signal is present in the browser. Backported to v2.3.x Change-Id: Icdb2ff5df7ceb0d94f1267bf81e59dede3c2baf9
Closes #855 Change-Id: Ib3b838a05bd147d60a91903bcc54176f86bc9f9d
Cherry-picked for v2.3.9 and v2.4.1. |
This change makes restrictions on AbrManager into "soft" restrictions. This means that if these restrictions cannot be met, AbrManager will still choose something instead of throwing an error. This is in contrast to top-level restrictions or DRM-based restrictions, which are "hard" restrictions that will stop playback if necessary. This change also fixes some minor issues with the SimpleAbrManager tests, such as cross-test pollution in the restrictions object. This is a lead-in to issue #855, where AbrManager's restrictions will have their defaults changed when the "saveData" signal is present in the browser. Backported to v2.4.x Change-Id: Icdb2ff5df7ceb0d94f1267bf81e59dede3c2baf9
Closes #855 Change-Id: Ib3b838a05bd147d60a91903bcc54176f86bc9f9d
An API to signal when the user has turned on data saver mode is being discussed here:
WICG/netinfo#42
Once this signal is available, Shaka player should respect the user's intent and change the stream selection logic to limit data consumption. The preferred mechanism for this would be to allow developers to restrict to a different max resolution/bandwidth when data saver is turned on, vs when it is not.
The text was updated successfully, but these errors were encountered: