MediaAutoplayPolicy Enum

Whether the media elements are allowed to play without a user gesture (BrowsingContextOptions.MediaAutoplayPolicy).

public enum MediaAutoplayPolicy

Fields

NameValueDescription
Allowed0The media elements are always allowed to play: play() and the autoplay attribute start the playback.
UserActivationRequired1The media elements are allowed to play when they are muted, or once the user interacted with the page (its window has sticky activation): otherwise play() is rejected with a NotAllowedError and the autoplay attribute does not start the playback.