New chrome autoplay policy prevents gifs from playing
See original GitHub issueDescription of the problem
With the new autoplay policy of chrome (seen at https://developers.google.com/web/updates/2017/09/autoplay-policy-changes), gifs and video’s don’t play automatically when hovered over, unless the user interacts with the page first. (Side note: Refreshing the page also counts as an interaction, making it a little difficult to reproduce)
Url of the page where the problem occurs (not the image url)
https://www.reddit.com/r/gifs/
Steps to reproduce the problem (include image url here)
- Go to the url https://www.reddit.com/r/gifs/
- Hover over one of the gif images
- Gif doesn’t play. Console shows the following error:
hoverzoom.js:485 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
OS version, extension version (Chrome only, Firefox is not supported)
Windows 10 Ultimate Chrome 66.0.3359.139
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Disable Animated GIFs from Auto-Playing in Chrome and Firefox
Animation Policy: This will run animations only once or disable them altogether. Although Video is not impacted, it will work on all image ......
Read more >How to Stop Animated GIFS From Playing ... - YouTube
How to Stop Animated GIFS From Playing Automatically on Chrome Browserhttps:// chrome. google.com/webstore/detail/animation- policy / ...
Read more >How to Stop GIFs From Auto-Playing in Your Browser | PCMag
That stops videos and animated GIFs, but you can still click them to activate. Go back into settings to turn auto-play back on,...
Read more >How to Disable Autoplaying GIFs From Your Browser [2022]
3. Prevent GIFs from playing automatically in Opera ... Not only do Chrome and Firefox have the extension, Opera also has an extension...
Read more >How to Disable Autoplaying GIFs From Your Web Browser
With this extension you can use keyboard shortcuts to enable and disable GIF. Hit Ctrl+M keys together in the current tab to play...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Possibly helpful - I solved this in @qrohlf/GifHub by including up a minimal play/pause UI. It’s licensed under the WTFPL, so you’re free to pull in in and use it in hoverzoom if you want 😉
It’s only about 70 lines of code including the CSS: https://github.com/qrohlf/GifHub/blob/f29343befe807517a22a5e2570e22ea241199d58/gifhub.js#L28-L102
https://www.reddit.com/r/imagus/comments/8jn7ms/potential_fix_for_imagus_white_box_and_other/?st=jmdwpowl&sh=2282850e