Instance Property

allowsInlineMediaPlayback

A Boolean value that determines whether HTML5 videos play inline or use the native full-screen controller.

Declaration

var allowsInlineMediaPlayback: Bool { get set }

Discussion

You must set this property to play inline video. Set this property to true to play videos inline. Set this property to false to use the native full-screen controller. When adding a video element to a HTML document on the iPhone, you must also include the playsinline attribute.

The default value for iPhone is false and the default value for iPad is true.

See Also

Managing Media Playback

var mediaPlaybackRequiresUserAction: Bool

A Boolean value that determines whether HTML5 videos can play automatically or require the user to start playing them.

var mediaPlaybackAllowsAirPlay: Bool

A Boolean value that determines whether Air Play is allowed from this view.

var allowsPictureInPictureMediaPlayback: Bool

A Boolean value that determines whether Picture in Picture playback is allowed from this view.