Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    mpris2 0.9

    Download button

    No screenshots available
    Downloads: 115  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    hugosenari | More programs
    GPL / FREE
    January 8th, 2012, 00:06 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    mpris2 description

    Python mpris2 definition

    mpris2 is a Python library to help developers work with Mpris2 and Python.

    See Mpris2 site (http://www.mpris.org/2.1/spec/)

    Example:

    Connect to player

    from mpris2.player.Player

    from mpris2.some_players import Some_PLayers

    uri = Interfaces.MEDIA_PLAYER + '.' + Some_PLayers.GMUSICBROWSER

    # uri = 'org.mpris.MediaPlayer2.gmusicbrowser'

    mp2 = Player(dbus_interface_info={'dbus_uri': uri})


    Call methods

    mp2.Next() # play next media

    Get attributes

    print mp2.Metadata #current media data

    Wait signal

    from dbus.mainloop.glib import DBusGMainLoop

    DBusGMainLoop(set_as_default=True)


    import gobject

    def my_handler(self, Position):
     print 'handled', Position, type(Position) print 'self handled', self.last_fn_return, type(self.last_fn_return)
    def another_handler(self, *args, **kw):
     print args, kw

    mloop = gobject.MainLoop()

    mp2.Seeked = my_handler

    mp2.PropertiesChanged = another_handler

    mloop.run()



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    mpris2 definition | Python library | Python | mpris2 | definition

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM