Auto-Play Policy Changes for macOS
webkit.org
webkit.org
This has made visiting news websites—say, your local fox channel—nearly unbearable, between the auto-playing ads and content.
I can't imagine how people with small bandwidth go to sites these days without an ad blocker.
It was a 50/50 split between the blink and the scrolling marquee.
I think every time I've encountered a website that autoplays video, it's been an annoyance. But maybe I haven't considered the topic with enough depth, what are examples of legitimate use-cases for autoplay video?
Of course since this only effects video that includes an audio track it wont impact them. I can't recall anything that auto plays video with audio that wasn't user hostile.
document.addEventListener('keypress', event => { if (event.key === 'space') video.play(); });
...then everything should just work fine.
On the other hand it takes away a LOT of flexibility - seriously, I don't want to do 50MB GIFs for animated background or weird JS trickery when I can use a 2MB video for the same effect.
Safari on iOS can now do inline playback! Just add a "playsinline" attribute to your <video> element: https://webkit.org/blog/6784/new-video-policies-for-ios/
This is why I mourned the death of Flash. Not installing flash made the web a much better place.
If yes: then it's annoying.
If no: annoying ads turn into animated gifs.
The options are: "Allow all Auto Play", "Stop Media with Sound" (the default), and "Never Auto Play".
Site authors following the best practices section in the WebKit.org blog should provide a play button for video-backed-gifs when "Never Auto Play" causes automatic playback to block.
I think that comment actually says disabling autoplay on animated gifs would be annoying.
So basically, its a no win move for the consumer.
However, my response would be to that would be: yes its bad if so, and if not, users can hopefully "throttle" its impact on our experience. IE. I would expect that the browser controls the parameters in which the GIF is "played" to maximize performance, or to suit user preference. E.g. Max number of frames, GIF size, looping etc
There's a concept that the cheaper and more plentiful a resource gets the more it gets wasted and thus, the resource will be scarce again.
The "richness" of media today is often too thick for me to stomach. I don't know why people are so impressed or think it impresses people.
Artifacts in heavily compressed video files are often more acceptable than artefacts in highly compressed still JPEGs, IMO.
It’s worth pointing out that the new auto-play policies apply both to video used as a tool for making something visual happen (like background video or video-as-animated-gif) and also to video that serves as consumable content. We recommend web developers test their site with these new behaviors, ensuring any custom media controls behave correctly when auto-play is disabled, either automatically by Safari or by users.
I.e. you now need to verify that your site still looks good and works well when background video auto-play has been denied.
According to the article, blacklisting (or lack of whitelisting) is also easy to detect by handling the Promise rejection, which means you can easily provide a static fallback for video that's used purely decoratively.
> Safari 11 also gives users control over which websites are allowed to auto-play video and audio by opening Safari’s new “Websites” preferences pane, or through the “Settings for This Website…” option in the Safari menu