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

PlatformmacOS

macOS implementation of the background_runtime plugin.

0.1.1 #

  • Migrated from AVAudioPlayer to AVPlayer (streaming, async, no sync Data(contentsOf:)).
  • MPRemoteCommandCenter wired for control center / Touch Bar actions (previous/next/play/pause/stop).
  • Album art download via URLSession.dataTask, set as MPMediaItemPropertyArtwork in MPNowPlayingInfoCenter.
  • Notification action events sent to Dart via notificationActionEvents EventChannel.
  • safeMillis(from:) for NaN-safe DoubleInt64 conversion from CMTime.seconds.
  • Main-thread permission request when enableAudio enabled.

0.1.0 #

  • Initial release: macOS implementation with background URLSession downloads and AVAudioPlayer playback.