[Qt-interest] Phonon Video player problem
Nechypurenko, Andrey (GE Healthcare)
Andrey.Nechypurenko at ge.com
Thu Apr 30 17:31:39 CEST 2009
Hi,
> hello everyone,
> 'm using Qt 4.5.0 and ubuntu 9.04...
> i was trying to build a video player
> here is the code i used
> window::window()
> {
> this->resize(1000,1000);
> Phonon::VideoPlayer *player = new
Phonon::VideoPlayer(Phonon::VideoCategory, this);
> connect(player, SIGNAL(finished()), player, SLOT(deleteLater()));
> Phonon::MediaSource *source = new
Phonon::MediaSource("home/keshava/SDCARD/video.avi");
> player->load(*source);
> player->resize(1000,1000);
> player->play();
> }
>
> the code is getting compiled and it displays the widgets but it does
not play the video file...
> i get following error in the terminal
>
> keshava at keshava-desktop:~/videotest$ ./videotest
>
> (<unknown>:4048): GStreamer-CRITICAL **: gst_element_make_from_uri:
assertion `gst_uri_is_valid (uri)' failed
I've never used phonon myself, but just a quick guess based on the error
reported: have you tried something like
"file:///home/keshava/SDCARD/video.avi" instead of
"home/keshava/SDCARD/video.avi" ?
Andrey.
More information about the Qt-interest-old
mailing list