Autoplay policy in browsers do not allow autoplay with sound unless there is some previous interaction with the document. For example if you are switching the page on the same site, it works, but otherwise, browsers limit this behaviour so that there is no audio spam.
Chrome’s autoplay policies are simple:
- Muted autoplay is always allowed.
- Autoplay with sound is allowed if:
- Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.