
My understanding was that the current crop of what we generously call "browsers" follow the rule that things can only "auto" play in response to a user's click. Fine. That is exactly what I'm trying to do.
So... how?
Please show me a working example.
Note that I am trying to make this happen on desktop. I will want a similar thing on mobile too, but I understand that the situation there is probably fucked in a completely different way.
(Also lemme know if this or this are doing something dumb on your browser, besides not playing the first time you click on things.)
We do this on the site masslive.com. We use the IFrame JS api. It's over-engineered, like all of Google's APIs, but it will do what you outline above.
https://developers.google.com/youtube/iframe_api_reference
The mixtapes link seemed to work like you described. I clicked the link and went to the mixtapes page. I clicked on "jwz mixtape 2Ø1". A 16:9 window popped up and began playing the videos with audio.
The webcasts page also pops up a window that plays the video stream when I click on the webcast link.
This is on a Windows 10 desktop with Chrome.
both links work as Dan describes on Debian stretch using firefox 60.4esr
Same on Chrome OS 71
as advertised on macos 10.13.4 firefox 64.0.2.
Both links do what you describe in Chrome on Ubuntu 16.04.
Androd7.1.1 -Chrome(59.0.3071125-mobile) Thing1-"Media blackback was aborted ... browser did not support -autoplays Thing2 /not a GooglePlay user.Waterfox 56moble Thing1-spinner spins,Thing2-works. May need update ...
Ok, well, maybe it's just Safari that's being an asshole?
So why is Safari being an asshole?
Looks like Safari's been disabling autoplay since High Sierra. https://www.howtogeek.com/326532/safari-now-disables-auto-playing-videos.-heres-how-to-allow-them-for-certain-sites/
And yet when I click on a Youtube URL, it auto-plays. Did Apple give Google special privileges?
Some comments I've read say that Apple whitelists YouTube and Facebook by default, leaving the non-billionaires to just deal with it, I presume.
Just for giggles, I opened up Safari on a computer we'd recently wiped and installed Mojave on. I opened Preferences / Websites / Auto-Play and confirmed that there were no entries there. Then, I loaded youtube.com. When I looked at Auto-Play again, there was an entry for youtube.com with "Allow All Auto-Play" selected. I definitely did NOT click anything to grant any permissions.
Well that's just peachy.