GlobalPlaybackControlSettings class
Settings for managing global playback behavior across multiple video players.
When enabled, these settings ensure exclusive playback control and synchronized mute state for a consistent user experience, especially useful in feed-like interfaces (e.g., stories, reels).
- Annotations
Constructors
- GlobalPlaybackControlSettings({bool useGlobalPlaybackController = true, bool synchronizeMuteAcrossPlayers = true})
-
Creates a new GlobalPlaybackControlSettings instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- synchronizeMuteAcrossPlayers → bool
-
Synchronizes the mute state across all video players controlled globally.
final
- useGlobalPlaybackController → bool
-
Enables a global playback controller that enforces only one video playing at a time.
final
Methods
-
copyWith(
{bool? useGlobalPlaybackController, bool? synchronizeMuteAcrossPlayers}) → GlobalPlaybackControlSettings - Returns a new GlobalPlaybackControlSettings instance with specified fields overridden.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited