FlutterMediaSessionWeb class

Web implementation of the Flutter Media Session plugin.

This class uses the browser's navigator.mediaSession API to integrate with system-level media controls and metadata displays.

Inheritance

Constructors

FlutterMediaSessionWeb()

Properties

hashCode int
The hash code for this object.
no setterinherited
onMediaAction Stream<MediaAction>
A stream of media actions emitted by the current platform.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate() Future<void>
Activates the media session by registering action handlers with the browser.
override
deactivate() Future<void>
Deactivates the media session and resets its state.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateMetadata(MediaMetadata metadata) Future<void>
Updates the media metadata displayed by the browser.
override
updatePlaybackState(PlaybackState state) Future<void>
Updates the playback state and media position in the browser's media session.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void
Registers the web implementation with the Flutter engine.