Contents

allowsInlineMediaPlayback

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

Declaration

var allowsInlineMediaPlayback: Bool { get set }

Discussion

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

The default value of this property is false for iPhone and true for iPad.

See Also

Setting media playback preferences