towka
November 26th, 2009, 02:59 PM
Hello programmers!
I have a problem with the phonon + gstreamer in QT4
This piece of code at run-time program throws an exception --
(<unknown>:17847): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed
С++ СODE:
Phonon::VideoPlayer* player = new Phonon::VideoPlayer(Phonon::VideoCategory,&l);
player->play(Phonon::MediaSource("/home/user/video1.mpg"));
l.resize(500,500);
l.show();
I tried
player->play(QUrl::fromLocalFile("/home/user/video1.mpg"));
or
player->play(QUrl::fromLocalFile("file:///home/user/video1.mpg"));
no reactions
What does this mean?
I have a problem with the phonon + gstreamer in QT4
This piece of code at run-time program throws an exception --
(<unknown>:17847): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed
С++ СODE:
Phonon::VideoPlayer* player = new Phonon::VideoPlayer(Phonon::VideoCategory,&l);
player->play(Phonon::MediaSource("/home/user/video1.mpg"));
l.resize(500,500);
l.show();
I tried
player->play(QUrl::fromLocalFile("/home/user/video1.mpg"));
or
player->play(QUrl::fromLocalFile("file:///home/user/video1.mpg"));
no reactions
What does this mean?