Swiftpack.co - Package - ddddxxx/MusicPlayer

MusicPlayer

release codebeat badge

Music player submodule for LyricsX.

Unified API for music players.

Supported Player

macOS

  • ☑ System-wide Now Playing
  • ☑ Apple Music (iTunes)
  • ☑ Spotify
  • ☑ Vox
  • ☑ Audirvana
  • ☑ Swinsian

iOS

  • ☑ Music
  • ☐ Spotify (blocked by SE-0272)

Linux

Usage

Quick Start

let player = MusicPlayers.Scriptable(name: .appleMusic)!
let track = player.currentTrack.title
if player.playbackState.isPlaying {
    player.skipToNextItem()
}

License

MusicPlayer is part of LyricsX and licensed under GPLv3. See the LICENSE file of LyricsX.

Additionally, LXMusicPlayer is available under LGPLv3. See the LICENSE file.

Github

link
Stars: 4

Dependencies

Used By

Total: 0