With this:
import gst
self.player = gst.element_factory_make("playbin", "player")
self.player.set_property('uri','file:///test.ogg))
self.player.set_state(gst.STATE_PLAYING)
How could I force a infinite loop of that test.ogg file?
With this:
import gst
self.player = gst.element_factory_make("playbin", "player")
self.player.set_property('uri','file:///test.ogg))
self.player.set_state(gst.STATE_PLAYING)
How could I force a infinite loop of that test.ogg file?
Here is the code:
def _loop(self, message):
self.player.set_property('uri', 'file://your_file_path')
self.player = Gst.ElementFactory.make(PLAYBIN, "player")
self.player.connect("about-to-finish", self._loop)
self.player.set_property('uri', 'file://your_file_path')
Cheers!