PDA

View Full Version : Trouble with playing custom format in phonon



lilesh
3rd October 2009, 13:03
Hi

I am using windows . I have a media file encoded using a customized format. I have written a directshow filter for decoding this filter. Simply dragging this file in graphedit, plays the video and audio well.

However how do I use the same within phonon?
I have the following code:

media = new MediaObject(this);
connect(media, SIGNAL(finished()), SLOT(slotFinished()));
media->setCurrentSource("/home/username/music/filename.ogg");
media->play();

However how do I make phonon aware about my format? Do I have to define mime type for my format? The above code snippet plays well with the std avi and other media files. (files for which I have directshow filters installed on my system)

Thanks for help

Rgds
Lilesh