i have this code :
import pygst
import st, pygtk
player_name = gst.element_make_factory("playbin", "Multimedia Player")
player_name.set_property("uri", "../media/alert.mp3")
player_name.set_state(gst.PLAYING)
it keeps throwing me the following error :
player_name = gst.element_make_factory("playbin", "Multimedia Player")
AttributeError: 'module' object has no attribute 'element_make_factory'
nay way to solve this and why is this happening ?
if i print gst
i get the following :
<module 'gst' from '/usr/lib/python2.7/dist-packages/gst-0.10/gst/__init__.pyc'>
so it is a module !
The error is actually very simple: the
gst
module has noelement_make_factory
method. Have a look at my following interactive session for some more info:Here's some working code...it's still in progress(but it works). It should have a glade file and some button callbacks implemented. The pygi Gst part works though.