Swiftpack.co -  ddddxxx/MusicPlayer as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
ddddxxx/MusicPlayer
Music player submodule for LyricsX
.package(url: "https://github.com/ddddxxx/MusicPlayer.git", from: "v0.7.3")

MusicPlayer

release codebeat badge

Music player submodule for LyricsX.

Unified API for music players.

Supported Players

macOS

  • ☑ Apple Music (iTunes)
  • ☑ Spotify
  • ☑ Vox
  • ☑ Audirvana
  • ☑ Swinsian

iOS

  • ☑ Music
  • ☐ Spotify (see #5)

Linux

Universal

  • SystemMedia: System-wide Now Playing
    • ☑ macOS
    • ☑ iOS (jailbroken device only) (test needed)
    • ☐ Linux (is this possible?)
  • ☐ Spotify (Web API)

Helper:

  • ☑ Agent: Delegate events to another player.
  • ☑ Now Playing: Automatically choose a playing player from given players.
  • ☑ Virtual: A virtual player that allows you to manipulate its state.
  • ☐ Remote: Sync player state from other devices.

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 MPL 2.0. See the LICENSE file.

GitHub

link
Stars: 12
Last commit: Yesterday

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API