Skip to content

video: note that Safari on iOS needs playsinline for autoplay - #46346

Closed
KishSiva wants to merge 1 commit into
mdn:mainfrom
KishSiva:fix/video-autoplay-playsinline
Closed

KishSiva wants to merge 1 commit into
mdn:mainfrom
KishSiva:fix/video-autoplay-playsinline

Conversation

@KishSiva

@KishSiva KishSiva commented Oct 31, 2026 •

Copy link
Copy Markdown

Description

Adds a note to the autoplay attribute description on the <video> reference page: Safari on iOS only autoplays a video if the element also has the playsinline attribute.

Motivation

The page explains that videos with sound need muted to autoplay, but it does not mention that Safari on iOS also requires playsinline. Readers who follow the page get videos that do not autoplay on iPhone.

Additional details

Source: Apple's Delivering Video Content for Safari: "Video elements that include <video autoplay> play automatically when the video loads in Safari on macOS and iOS, only if those elements also include the playsinline attribute."

Related issues and pull requests

Fixes #44020

Safari on iOS only honors the autoplay attribute when the element also
has the playsinline attribute, which the attribute description did not
mention. Add a note pointing to Apple's documentation.

Fixes mdn#44020
@KishSiva
KishSiva requested a review from a team as a code owner October 31, 2026 22:55
@KishSiva
KishSiva requested review from estelle and removed request for a team October 31, 2026 22:55
@github-actions github-actions Bot added Content:HTML Hypertext Markup Language docs size/xs [PR only] 0-5 LoC changed labels Oct 31, 2026
@KishSiva
KishSiva force-pushed the fix/video-autoplay-playsinline branch from ccb072f to 4ead2a6 Compare November 1, 2026 00:39
@pepelsbey

pepelsbey commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Thank you for help! Please note that the original issue recommends applying changes to BCD first, and only then, if necessary, adding a content note.

Please follow the suggested steps. Thanks!

@pepelsbey pepelsbey closed this Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTML Hypertext Markup Language docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

video needs playsinline to autoplay on Safari iOS

2 participants