lang/lang. phython2013. 4. 17. 10:50

https://live.gnome.org/RhythmboxPlugins/WritingGuide#Controlling_Playback


  • Play/Pause

    shell.props.shell_player.playpause()
  • Stop

    shell.props.shell_player.stop()
  • Next track

    shell.props.shell_player.do_next()
  • Add a song to the Play Queue

    shell.add_to_queue("file://awsome_song.ogg")
  • Display a visualization

    import gst
    goom = gst.element_factory_make ("goom")
    sink = gst.element_factory_make ("ximagesink")
    colour = gst.element_factory_make ("ffmpegcolorspace")
    b = gst.Bin()
    b.add (goom, colour, sink)
    b.add_pad(gst.GhostPad("sink", goom.get_pad("sink")))
    goom.link(colour)
    colour.link(sink)
    shell.get_player().props.player.add_tee(b)


Posted by wooix