Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
use mplayer to play a stream 

        def play(uri, callback_on_finish):
    """ use mplayer to play a stream """
    global process
    close()
    file_name = uri.split("?")[0] if uri.startswith('http://') else uri

    is_play_list = file_name[-4:] in ('.m3u', '.pls')

    opts = ["mplayer", "-quiet", uri]
    if is_play_list:
        opts.insert(2, '-playlist')

    process = popen_with_callback(callback_on_finish, opts, shell=False,
                                  stdout=subprocess.PIPE,
                                  stdin=subprocess.PIPE,
                                  stderr=subprocess.STDOUT)
        


src/l/y/lyrics-0.0.3/lyrics/apps/console/keys.py   lyrics(Download)
def _start_playing():
    player.play(state.playing.path, lambda: next())
    _after_movement()
 
# ------------------------------------------------------------------------