AUTOPLAY property
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:
- Windows WebView2 (Official API - COREWEBVIEW2_PERMISSION_KIND_AUTOPLAY)
Implementation
static final AUTOPLAY = PermissionResourceType._internalMultiPlatform(
'AUTOPLAY',
() {
switch (defaultTargetPlatform) {
case TargetPlatform.windows:
return 9;
default:
break;
}
return null;
},
);