jernoble
Explore media formats for the web – WWDC23
Re:Show HN: A stupid website for animating images on top of videos (HT...
on Thursday April 09, 2020 @06:52PM (#22828037)
This is really cool! It’d be even better if you added “playsinline” attributes to your video elements so your videos didn’t play in fullscreen on iPhones.
Re:Tell HN: Legacy WebAudio content will break in Chrome 70
on Tuesday September 25, 2018 @09:08PM (#18071863)
That should have stopped happening in iOS 11.4. If you’ve upgraded to-or-past that and you’re still seeing that happen, please let me know: email in profile or @jernoble on Twitter.
Re:How Cuts in Basic Subway Upkeep Can Make NYC Commutes Miserable
on Thursday December 21, 2017 @01:17PM (#15981317)
Interesting. At 1.10 cars per household, and 2.26 people per household, about 47% of SF residents own cars. (Though subtracting out the under-18 population means 55% of driving-age residents own a car.) Also, given there must be some people who own more than one, the actual percentage is probably lower. Still, that's a lower number than I imagined.
Re:Auto-Play Policy Changes for macOS
on Thursday June 08, 2017 @04:44PM (#14517047)
A "keypress" event counts as a user gesture, so as long as your code looks like:
document.addEventListener('keypress', event => { if (event.key === 'space') video.play(); });
...then everything should just work fine.
Re:Auto-Play Policy Changes for macOS
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
on Thursday June 08, 2017 @01:56PM (#14515834)
You can now change this setting either globally, or on a per-website basis in Safari Technology Preview 32: https://webkit.org/blog/7627/safari-technology-preview-32/
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.