Not sure what I am doing wrong.
Neither are we, based on a single line of code. You probably don't have the GStreamer or QML dependencies installed correctly, or are not providing the correct paths to your runtime.