I'm trying to share MP3 audio files from my S3 bucket, but when I share the link, users have to click play to listen. Is there a way to tweak something so the MP3s I upload will play immediately? Here's my current bucket policy for reference: { "Version": "2012-10-17", "Statement": [{ "Sid": "PublicReadAllObjects", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::wadw-audio/*" }] }
2 Answers
You can try adding `?autoplay=1` to the end of your MP3 URL. Some browsers recognize that as a hint to play automatically. However, a sure way to get it to autoplay is to wrap the audio in an HTML page. Here’s a simple template you can use:
Actually, it might not be an S3 issue at all. It’s often more about browser settings. Some browsers might follow the autoplay tag in your HTML if you’re embedding the MP3, so keep that in mind! Check out Mozilla's documentation on autoplay for more details.

Oh nice! I actually figured out that using https instead of http in the URL for my MP3 made it autoplay on some desktop browsers. Just thought I'd share!