Video doesn't always start when program beigns using gstreamer
-
I am posting to see if anyone has any idea about our problem. We are pulling video from an ip camera into qt with gstreamer. However, the video doesn't always start. we have to close it and open it several times until we can get the video in.
this is our function:
Video::Video(QGraphicsItem *parent) :
QGraphicsVideoItem(parent)
{
QmediaPlayer *vidPlayer = new QMediaPlayer;
vidPlayer->setMedia(QUrl("rtsp://192.168.1.90/axis-media/media.amp?fps=0&camera=3"));
vidPlayer->setVideoOutput(this);
vidPlayer->play();
}here is our application output:
"qt internal data flow error"
and we always get this where the video stream shows or not:
"failed to start video surface"Any ideas?