Skip to content

An extensible music player library written in Python, D-Bus mpris compatible

License

Notifications You must be signed in to change notification settings

marcinn/letsplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

letsplay

An extensible music player wbrary ritten in Python

Features

  • thin wrapper around any media player (mplayer as default)
  • possibility to bind to any user interface (via extensions)
  • local and remote files (multiple schemes supported)
  • media finders API
  • D-Bus org.mpris.MediaPlayer2 integration
  • extensible via plugins

Quickstart (Python API)

import letsplay as lp

player = lp.init()
player.load(lp.find('/path/to/music/files/*.mp3'))
player.play()

Expose D-bus interface

Same as above plus:

lp.mpris.register_mpris_service(player)
loop = lp.mpris.create_glib_loop()
loop.run()

Destroying the player

Remember to destroy the player. It is required for cleaning up.

try:
    loop.run()
finally:
    player.destroy()

License

GPL3

Releases

No releases published

Packages

No packages published

Languages