#!/usr/bin/python
import pygst
pygst.require("0.10")
import gst

# declare our pipeline and GST elements
pipeline = gst.Pipeline("mypipeline")
pbin = gst.element_factory_make("playbin", "pbin");
pbin.set_property("uri", "file:///home/user/file.mpeg")

# add elements to the pipeline
pipeline.add(pbin)

# start playback
pipeline.set_state(gst.STATE_PLAYING)

# playback will stop when the program exits, so we insert an infinite loop to stop it from exiting
# naturally in a real application, you'll have a more elegent solution - this is just a simple example
while True:
	x=1

