Safari in particular has never worked, but I've had bad luck with Chrome and Firefox as well.
On a related note, is there a browser that can completely block auto-playing video with a setting that actually works?
I find it depressing that web developers seem willing to do anything to ignore user preferences, especially when intrusive advertising is involved.
But here is some sloppy code you could create a basic browser extension and shove in content.js: