Skip to content

Instantly share code, notes, and snippets.

@markwingerd
Created November 18, 2014 20:23
Show Gist options
  • Save markwingerd/751a9a224ba27f2df9c9 to your computer and use it in GitHub Desktop.
Save markwingerd/751a9a224ba27f2df9c9 to your computer and use it in GitHub Desktop.
GStreamer Tutorial 1: Part 3/3 - Plays an mp3 file
# Set our pipelines state to Playing.
pipeline.set_state(gst.STATE_PLAYING)
# Wait until error or EOS.
bus = pipeline.get_bus()
msg = bus.timed_pop_filtered(gst.CLOCK_TIME_NONE,
gst.MESSAGE_ERROR | gst.MESSAGE_EOS)
print msg
# Free resources.
pipeline.set_state(gst.STATE_NULL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment