tags:

views:

47

answers:

2

Hi, I am using Qt SDK 4.6 for developing a simple music player on windows XP. I have checked available mime types supported by phonon and according to it my phonon supports mp3 files Yet as i try to play an audio file of .mp3 format using my music player mediaObject moves in Error State and the error i get is Fatal Error : No combination of filters could be found to render the stream Secondly, I want to know how can i provide support for other audio files which are not currently supported by phonon like as .ogg file. Please help.

+3  A: 

Phonon is just an abstraction layer over a media player backend. Check the overview here and look for the Backends section.

You need to install mp3 codecs for your target backend. If you're on Windows, this is making sure you have mp3 playback in DirectShow/DirectX. Your error implies that you don't have any DirectShow filters for mp3

SB
A: 

Thanks!! It worked.

I'll be grateful to you if you answer my second query i.e. how to make a format supported by phonon which it does not support currently like as .ogg in my case

Try installing a .ogg codec. Phonon queries the backend to see if it supports it, so just install a directshow filter that handles ogg. If you think the answer is sufficient, please be sure to accept it as well.
SB
It workedThanks
Glad to help.. if you are so inclined, feel free to accept my answer by clicking on the checkbox next to it in your view.
SB