[python] check if state is playing

Pablo Rodríguez oinos at web.de
Sun Nov 28 17:58:39 UTC 2021


Dear list,

is there a way to check whether a player is in playing state?

I mean, something similar to Python pseudocode:

 if self.player.get_state(0)[1] == "GST_STATE_PLAYING":

Sorry, but I couldn’t find any reference for that.

Many thanks for your help,

Pablo


More information about the gstreamer-devel mailing list