DVMediaSession class final

What a player publishes to the now-playing surface.

DVBox.audio(source, session: DVMediaSession(title: episode.title)). Declared on the player rather than pushed from a page, so the lock screen is never out of step with what is playing.

Constructors

DVMediaSession({required String title, String? artist, String? album, String? artworkUrl, Duration skipInterval = const Duration(seconds: 10)})
const

Properties

album → String?
final
artist → String?
final
artworkUrl → String?
An https: URL or a file path the platform can read the artwork from.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipInterval → Duration
How far the skip buttons move.
final
title → String
final

Methods

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.
override