Qml and MediaPlayer
-
@mrdebug in Qt 5.1.5.2, I guess Qt uses gstreamer for RTSP streaming.
If play state is set and streaming starts, you can show "connecting".
However, you may not be able to get an event if rtsp streaming stops in Qt. Even in gstreamer, it is a bit messy to handle the scenario(doable). For example, camera is broken or turned off or network connection is gone. -
I'm disappointed with the Qt gstreamer implementation.
I need to watch a rtsp camera persisently and I need an event when the connection is done or the connection is broken.
MediaPlayer close the rtsp connection afer a while.
What do you siggest to use as multiplatfor library in order to watch a rtsp camera?
I used ffmper but with not so good experience.
https://github.com/denisgottardello/QtFFmpegPlayer