background_runtime_web 0.1.1 copy "background_runtime_web: ^0.1.1" to clipboard
background_runtime_web: ^0.1.1 copied to clipboard

Platformweb

Web implementation of the background_runtime plugin.

0.1.1 #

  • Notification action stream via navigator.mediaSession (prev/next/play/pause/stop).
  • MediaMetadata with album art artwork from AudioTrack.albumArt.
  • Keyboard media-key fallback (MediaTrackPrevious, MediaTrackNext, MediaPlayPause, MediaStop).
  • Direct anchor-element download (avoids CORS restrictions of XMLHttpRequest).
  • Explicit AudioElement.play() with DomException catch for blocked autoplay.
  • Tracked _currentPlayerState for play/pause toggle via media keys.
  • StreamSubscription management for keyboard listener in shutdown().

0.1.0 #

  • Initial release: Web implementation stub.