You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Stop auto play HTML5 in Safari?

With the upgrade from El Capitan to Sierra, ClicktoPlugin is very much broken. So now videos on sites such as YouTube, CNN, and others are all auto-playing again.


I've read that Sierra has a feature to stop this from happening - it involves going to Safari Preferences:


Go to the Security tab, then Internet Plug-ins. Allow Plug-ins should be checked, then click the Plug-in Settings button.


Then choose QuickTime, set "When visiting other websites" to Ask. HTML5 should then stop auto playing video.


The problem is this doesn't work, as there isn't any QuickTime plugin listed.


So does anyone know how to stop HTML5 from playing in Safari 10, under Sierra?

MacBook Pro, macOS Sierra (10.12)

Posted on Sep 24, 2016 8:30 AM

Reply
28 replies

Feb 15, 2017 8:49 AM in response to Syth

This doesn't work. Also checking the following in the Safari debug menu has no effect at all:


Disallow Inline Video

Video Needs User Action

Audio Needs User Action


This problem seems to have resolved itself on my iMac (I do not know why), it only persists on my MBP. The issue "resolved" itself on my iMac at the same time another Safari issue went away. That had to do with certain websites not auto-logging in. Sites such as Tumblr, YouTube, Flickr, and Twitter all will have me automatically logged in when I go to their sites. On my MBP, it still has me logged out and I have to log back in every time. So it seems that their is some setting on Safari on my MBP that is not working correctly. I haven't changed any settings on either Safari browser, so I am not sure why it has gone away on my iMac.


Also when I click the play button, the video goes to full screen - this happens on YouTube, Apple iTunes Movie Trailers, CNN, etc.

Apr 7, 2017 8:42 AM in response to robertcoogan

This trick worked for me, stopping annoying autoplay of video on news websites:

open Terminal app, paste and enter these two lines of code...


defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2RequiresUserGestureForMedia Playback" -bool true


defaults write com.apple.Safari WebKitVideoPlaybackRequiresUserGesture -bool true

Sep 24, 2016 11:43 AM in response to BobTheFisherman

This would work except I am heavily dependent on Reading List and Cloud Tabs. Neither which would work as seamlessly in Firefox or Chrome as they do in Safari. There is a (weak) workaround - Autoplay of HTML5 can still be blocked if ClicktoPlugin is left on. If I want to watch a video, I can right-click on the video and chose to turn off the plugin. But in order to turn it back on, I have to restart Safari. A pain, but it works.

Stop auto play HTML5 in Safari?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.