Instance Property

allowsInlineMediaPlayback

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

Declaration

@property(nonatomic) BOOL allowsInlineMediaPlayback;

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

Setting Media Playback Preferences

allowsAirPlayForMediaPlayback

A Boolean value indicating whether AirPlay is allowed.

allowsPictureInPictureMediaPlayback

A Boolean value indicating whether HTML5 videos can play picture-in-picture.

mediaTypesRequiringUserActionForPlayback

Determines which media types require a user gesture to begin playing.

mediaPlaybackAllowsAirPlay

Deprecated property. Instead, use allowsAirPlayForMediaPlayback.

Deprecated
requiresUserActionForMediaPlayback

A Boolean value indicating whether HTML5 videos require the user to start playing them (YES) or whether the videos can be played automatically (NO).

Deprecated
WKAudiovisualMediaTypes

The media types that require a user gesture to begin playing