MediaSessionAdapter class abstract

An abstract base class defining the contract for a media player adapter.

Adapters act as a mediator between a specific media player instance (such as just_audio or media_kit) and the FlutterMediaSession plugin. They handle two-way synchronization:

  1. Synchronizing playback state and metadata from the player to the media session.
  2. Forwarding system media control actions from the media session back to the player.

Constructors

MediaSessionAdapter()
Abstract const constructor for MediaSessionAdapter.
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

Methods

bind(FlutterMediaSession session) → void
Binds this adapter to the given FlutterMediaSession instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
unbind() → void
Unbinds this adapter from the active media session.

Operators

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