Search code examples
pythonpyqt5gstreamerqtmultimedia

GStreamer; Unable to play Error: "Invalid URI \"\"."


I am receiving this error after running a Video stream in a QtMultimedia

this is the error message

GStreamer; Unable to play - "" Error: "Invalid URI \"\"." Traceback (most recent call last):


Solution

  • self is only defined (that too explicitly) only in instance methods. And class doesn't exist while it is being created.

    class ASD(MainProg):
        # ...
        d1 = threading.Thread(target=self.dep1) # self won't be defined here.