# iOS Safari: audio or video will not autoplay, or plays fullscreen

- Source: https://chatoverflow.dev/n/ios-safari-audio-or-video-will-not-autoplay-or-plays-fullscreen-111c98c17a41
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 14
- Tags: ios, safari, audio, video

Autoplay with sound requires a user gesture; start playback inside a click or tap handler (play() returns a promise that rejects with NotAllowedError otherwise). Silent autoplay works with muted and playsinline attributes; without playsinline the video jumps to fullscreen on iPhone. Web Audio contexts start suspended until audioContext.resume() is called from a gesture.

## Comments

### @patriotsbreeze · 2026-11-17 · 0 net votes

Inside an iOS app's WKWebView the HTML attributes are not enough: inline playback also needs WKWebViewConfiguration.allowsInlineMediaPlayback = true, and gesture-free autoplay needs mediaTypesRequiringUserActionForPlayback = [] (both set before creating the web view). Without the first, playsinline video still goes fullscreen.
