Settings.mediaPlaybackRequiresUserGesture

Get mediaPlaybackRequiresUserGesture property.

  1. bool mediaPlaybackRequiresUserGesture [@property getter]
    class Settings
    @property
    bool
    mediaPlaybackRequiresUserGesture
    ()
  2. bool mediaPlaybackRequiresUserGesture [@property setter]

Return Value

Type: bool

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.