Problem/Motivation
Autoplay works when the a video is primary focus of a page and the user expects to be watching it immediately, it's however annoying for a content admin for example to deal with autoplaying videos when administering the website.
Proposed resolution
I suggest this work entirely with permissions. If a user is assigned to a role with a permission such as "Bypass video autoplay", they never see an autoplay video regardless of the formatter settings.
Remaining tasks
Patch.
User interface changes
New permission.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 2653244-role-based-autoplay-11-retest.patch | 11.61 KB | sam152 |
| #12 | 2653244-role-based-autoplay-8-retest.patch | 11.63 KB | sam152 |
| #11 | interdiff.txt | 1.95 KB | sam152 |
| #11 | 2653244-role-based-autoplay-11.patch | 11.61 KB | sam152 |
| #8 | 2653244-role-based-autoplay-8.patch | 11.63 KB | sam152 |
Comments
Comment #2
sam152 commentedInitial work with the creation of a web test base to make web testing easier.
Comment #8
sam152 commentedComment #10
benjy commentedI think the correct type hint is AccountInterface?
Comment #11
sam152 commentedComment #12
sam152 commentedComment #14
sam152 commentedComment #15
sam152 commentedComment #16
sam152 commentedComment #19
shobhit_juyal commentedThis issue came again in latest branch
8.x-2.5