Skip to content

suransea/mpris-swift

Repository files navigation

mpris-swift

Github Release GitHub Actions Workflow Status GitHub License Swift Version Compatibility Platform Compatibility

A library for interacting with MPRIS players.

Documentation

The API Documentation is available on Swift Package Index.

Example

let connection = try Connection(type: .session)
try connection.setupDispatch(with: DispatchQueue.main)
let sessionManager = try MediaPlayer2.SessionManager(connection: connection)
if let player = sessionManager.activePlayer {
  try await player.player.pause()
  print(try await player.player.playbackStatus.get())
}

License

MIT license

About

A library for interacting with MPRIS players

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages