[Qt-interest] Phonon Video player problem

Keshava Krishna keshavkrishna88 at gmail.com
Wed Apr 29 12:25:08 CEST 2009


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

can anyone please help me ??
-- 
Regards,
Keshava.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090429/d21f7f5c/attachment.html 


More information about the Qt-interest-old mailing list