[Qt-interest] Phonon Video player problem

Constantin Makshin dinosaur-rus at users.sourceforge.net
Fri May 1 10:51:09 CEST 2009


The path you specified in Phonon::MediaSource() function looks like an  
absolute path without leading slash. Shouldn't it be  
"/home/keshava/SDCARD/video.avi"?

On Thu, 30 Apr 2009 18:04:09 +0400, Keshava Krishna  
<keshavkrishna88 at gmail.com> wrote:
> hello again ,
>
> can anyone please help me with the above thing?
>
> Regards,
> Keshava.
>
> On Wed, Apr 29, 2009 at 3:55 PM, Keshava Krishna
> <keshavkrishna88 at gmail.com>wrote:
>
>> 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.

-- 
Constantin "Dinosaur" Makshin



More information about the Qt-interest-old mailing list