When the user is in data saver mode, autoplay media should be disabled. Loading and preloading should also be disabled.
I would suggest implementing this by adding another case to the top of HTMLMediaElement::preloadType(). IMHO, we should expose this to scripts by adding HTMLMediaElement.prototype.effectivePreload or similar.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f8bfcd3507243fd3250f7ef3e2412a495284fcc6 commit f8bfcd3507243fd3250f7ef3e2412a495284fcc6 Author: mlamouri <mlamouri@chromium.org> Date: Thu Jun 09 16:33:29 2016 Autoplay: disable muted video autoplay if data saver is on. BUG= 607551 R=avayvod@chromium.org Review-Url: https://codereview.chromium.org/2046403002 Cr-Commit-Position: refs/heads/master@{#398905} [add] https://crrev.com/f8bfcd3507243fd3250f7ef3e2412a495284fcc6/third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-off.html [add] https://crrev.com/f8bfcd3507243fd3250f7ef3e2412a495284fcc6/third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-on.html [modify] https://crrev.com/f8bfcd3507243fd3250f7ef3e2412a495284fcc6/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
Comment 1 by mlamouri@chromium.org
, Apr 28 2016