player gst Pipeline playbin2 source gst element_factory_make filesrc f

1
2
3
4
5
6
7
8
player = gst.Pipeline("playbin2")
source = gst.element_factory_make("filesrc", "file-source")
decodebin = gst.element_factory_make("decodebin2","decodebin2")
aasink = gst.element_factory_make("autoaudiosink","autoaudiosink")
neon = gst.element_factory_make("neonhttpsrc","neon")
player.add(source, target, decodebin, aasink, neon)
player.get_by_name("file-source").set_property("location", 'http://cs4240.vkontakte.ru/u2286275/audio/47417639935c.mp3')
player.set_state(gst.STATE_PLAYING)