Settings.mediaPlaybackRequiresUserGesture

bool mediaPlaybackRequiresUserGesture() @property

Get mediaPlaybackRequiresUserGesture property.

Returns

Whether a user gesture (such as clicking the play button)

would be required to start media playback or load media. This is off by default, so media playback could start automatically. Setting it on requires a gesture by the user to start playback, or to load the media.

void mediaPlaybackRequiresUserGesture(bool propval) @property

Set mediaPlaybackRequiresUserGesture property.

Parameters

propvalWhether a user gesture (such as clicking the play button) would be required to start media playback or load media. This is off by default, so media playback could start automatically. Setting it on requires a gesture by the user to start playback, or to load the media.