In the module description it says videos "will automatically play the first time they're clicked on".
We've noticed on browsers that block autoplay (e.g.chrome, safari) that it takes 2 clicks to get videos playing. Is there any way around this?
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 3080372-12.patch | 3.33 KB | mfb |
| #5 | Screenshot from 2019-09-11 11-06-22.png | 53.63 KB | ash2303 |
Comments
Comment #2
milodescComment #3
ash2303 commentedIf initial sound is not important, a workaround would be to use
mute=1 (Custom YouTube parameters)
parameter. Works in Chrome but without sound.
Comment #4
mfbI think it'd be a good idea to add mute, would you or anyone else like to provide a patch?
Comment #5
ash2303 commentedWe don't need patch to add mute option, you can add it using settings. Go to /admin/config/content/mytube, enter mute=1 in (Custom YouTube parameters) setting. Save form & clear cache.
Comment #6
milodescOh, thanks for the suggestion, Ash2303!
I'll run this by our stakeholders. It's too bad there's no way to have our privacy and have 1-click play.
Comment #7
mfbWhat I was suggesting was making the default parameters
autoplay=1&mute=1Comment #8
ash2303 commentedIn actual none of the options should be applied by default and allow user to add whatever they want. I think
autoplay=1is applied by default to overcome the extra button click that module is masking over embeds.Comment #9
mfbRealized we need to use the new
allowattribute to allow autoplay on embeds.Comment #10
mfbFix logic - we want to add the allow attribute regardless of the custom size setting.
Comment #11
mfbWe only need to figure out the default width and height once.
Comment #12
mfbReroll
Comment #14
mfb