News for hackers. Stuff that matters.
Re:Auto-Play Policy Changes for macOS by mschuster91 on Thursday June 08, 2017 @02:09PM (#14515927)
On one side, I can certainly understand why Apple went with this, even if it drives me nuts that Safari@iOS can't do inline play at all (because it prevents nice artistic stuff using a canvas overlaid over a video element, for example), even if the play action is user-initiated.

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.

Re:Auto-Play Policy Changes for macOS by jernoble on Thursday June 08, 2017 @02:18PM (#14515983)
> ...it drives me nuts that Safari@iOS can't do inline play at all...

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/

Re:Auto-Play Policy Changes for macOS by dhritzkiv on Thursday June 08, 2017 @02:23PM (#14516017)
Also make sure to remove the audio track!
Re:Auto-Play Policy Changes for macOS by eridius on Thursday June 08, 2017 @02:18PM (#14515984)
The default is to still auto-play silent movies (movies with no audio track or with the muted flag). If you're just using this for a background effect, the best solution is to just get used to the fact that for a minority of users, the video won't work and you'll have to fill in something else (don't use a 50MB GIF, just go with something non-animated!), but a majority of users will still get the silent video.
Re:Auto-Play Policy Changes for macOS by kdecker on Thursday June 08, 2017 @02:32PM (#14516091)
Correct. A static image might be a good fallback for users who completely turn off all forms of auto-play. It's easy to detect auto-play is off and provide a graceful fallback.
Re:Auto-Play Policy Changes for macOS by wsc981 on Thursday June 08, 2017 @03:37PM (#14516595)
When I am on my phone, having a monthly download limit of 2,5 GB after which my internet is cut off, I don't really want do download a 2 MB video at all.
Re:Auto-Play Policy Changes for macOS by dmitrygr on Thursday June 08, 2017 @05:27PM (#14517324)
I was not aware that "artistic" is now a synonym for "user-hostile". I promise you nobody wants to spend 2%-3% of their monthly AT&T data allotment on your partially obscured background video.
Re:Auto-Play Policy Changes for macOS by djrogers on Thursday June 08, 2017 @05:29PM (#14517336)
How about you just not have animated backgrounds? How does that possibly help usability in any way? All it does it waste bandwidth and CPU/battery
Re:Auto-Play Policy Changes for macOS by marssaxman on Friday June 09, 2017 @03:48PM (#14523920)
I'm glad they're taking away flexibility. I hope they entirely remove the ability to create animated backgrounds.