MediaUrlResolver typedef

MediaUrlResolver = Future<String?> Function(String itemId, Map<String, dynamic> extras)

Asks for a fresh playable URL for a media item. Modules that know how to re-resolve their links (expired signed URLs, rotated CDN paths, quality variants) register one of these on the audio handler; the handler calls them — in registration order — before declaring a track dead.

Returns the fresh URL, or null/empty when this resolver cannot help.

Implementation

typedef MediaUrlResolver = Future<String?> Function(
    String itemId, Map<String, dynamic> extras);