mediaPlaybackRequiresUserGesture property

bool mediaPlaybackRequiresUserGesture
getter/setter pair

Set to true to prevent HTML5 audio or video from autoplaying. The default value is true.

NOTE: available on iOS 10.0+.

Implementation

bool mediaPlaybackRequiresUserGesture;