Created
November 18, 2014 20:23
-
-
Save markwingerd/751a9a224ba27f2df9c9 to your computer and use it in GitHub Desktop.
GStreamer Tutorial 1: Part 3/3 - Plays an mp3 file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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