AutoMediaPlaybackPolicy enum

Specifies possible restrictions on automatic media playback.

This is typically used in WebView.initialMediaPlaybackPolicy.

Constants

always_allow → const AutoMediaPlaybackPolicy

Starting any kind of media playback is always allowed.

For example: JavaScript code that's triggered when the page is loaded can start playing video or audio.

const AutoMediaPlaybackPolicy(1)
require_user_action_for_all_media_types → const AutoMediaPlaybackPolicy

Starting any kind of media playback requires a user action.

For example: JavaScript code cannot start playing media unless the code was executed as a result of a user action (like a touch event).

const AutoMediaPlaybackPolicy(0)
values → const List<AutoMediaPlaybackPolicy>

A constant List of the values in this enum, in order of their declaration.

const List<AutoMediaPlaybackPolicy>

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited