[Qt-interest] Phonon Video player problem
Keshava Krishna
keshavkrishna88 at gmail.com
Fri May 1 04:54:23 CEST 2009
Andrey,
thanks a lot !! u solved the problem i had the video player is working....
thank you once again...
On Thu, Apr 30, 2009 at 9:01 PM, Nechypurenko, Andrey (GE Healthcare) <
Andrey.Nechypurenko at ge.com> wrote:
> 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.
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Regards,
Keshava.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090501/fa62cb46/attachment.html
More information about the Qt-interest-old
mailing list