Instance Property

mediaPlaybackRequiresUserAction

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

Declaration

var mediaPlaybackRequiresUserAction: Bool { get set }

Discussion

The default value on both iPad and iPhone is true. To make media play automatically when loaded, set this property to false and ensure the <audio> or <video> element you want to play has the autoplay attribute set.

See Also

Managing Media Playback

var allowsInlineMediaPlayback: Bool

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

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.