AUTOPLAY property

PermissionResourceType AUTOPLAY
final

Indicates permission to play audio and video automatically on sites. This permission affects the autoplay attribute and play method of the audio and video HTML elements, and the start method of the Web Audio API. See the Autoplay guide for media and Web Audio APIs for details.

Officially Supported Platforms/Implementations:

Implementation

static final AUTOPLAY = PermissionResourceType._internalMultiPlatform(
  'AUTOPLAY',
  () {
    switch (defaultTargetPlatform) {
      case TargetPlatform.windows:
        return 9;
      default:
        break;
    }
    return null;
  },
);