I need to run MP3 & WMA files from my WINCE application .

I do not want to use Windows Media Player.

I have found out two ways:
1> Via DirectShow()

Here I have problem comes that file can not be rendered.
Which seems to mean that I need MP3 codec.
But, I do not know how to get one.How to use it.

2> Via Windows Media Player ActiveX Control.
But, I can not find the active X control(.ocx).

Please can anyone tell me from where & how to get the solution?

RE: Playing MP3 files by amitranjan

amitranjan
Tue Feb 27 06:33:03 CST 2007

Hi,

As for using directshow your device must have mp3 decoder as directshow
filter.Verify if your device has that.
As for using WMP control...check out this article:
http://www.codeguru.com/cpp/w-p/ce/pocketpc/article.php/c10817/

Hope it helps..
--
Thanks and Regards
Amit Ranjan
blog:http://amitranjan.wordpress.com


"DRG123" wrote:

> I need to run MP3 & WMA files from my WINCE application .
>
> I do not want to use Windows Media Player.
>
> I have found out two ways:
> 1> Via DirectShow()
>
> Here I have problem comes that file can not be rendered.
> Which seems to mean that I need MP3 codec.
> But, I do not know how to get one.How to use it.
>
> 2> Via Windows Media Player ActiveX Control.
> But, I can not find the active X control(.ocx).
>
> Please can anyone tell me from where & how to get the solution?
>
>

Re: Playing MP3 files by DRG123

DRG123
Tue Feb 27 07:23:01 CST 2007

On Feb 27, 5:33 pm, Amit <amitranjan@nospam-saskendotcom> wrote:
> Hi,
>
> As for using directshow your device must have mp3 decoder as directshow
> filter.Verify if your device has that.
> As for using WMP control...check out this article:http://www.codeguru.com/cpp/w-p/ce/pocketpc/article.php/c10817/
>
> Hope it helps..
> --
> Thanks and Regards
> Amit Ranjan
> blog:http://amitranjan.wordpress.com
>
>
>
> "DRG123" wrote:
> > I need to run MP3 & WMA files from my WINCE application .
>
> > I do not want to use Windows Media Player.
>
> > I have found out two ways:
> > 1> Via DirectShow()
>
> > Here I have problem comes that file can not be rendered.
> > Which seems to mean that I need MP3 codec.
> > But, I do not know how to get one.How to use it.
>
> > 2> Via Windows Media Player ActiveX Control.
> > But, I can not find the active X control(.ocx).
>
> > Please can anyone tell me from where & how to get the solution?- Hide quoted text -
>
> - Show quoted text -

Thanks for response,

First of all I do not know how to verify that my device has the
required(MP3 codec) or not.
But I guess it should have it because 1> I can play MP3 files via
WMplayer in this device which means that this device can play such
file and anyways WMPlayer also does the task by DirectShow(). 2> I
have tried to use the code on PDA2K and Windows Mobile 5

For the WMP control sample,

I can not run the given exe directly on my device as I am getting
error that component is missing.
I can not find the required ocx file so even i can not create such an
sample application. I have downloaded all references from that WMP
sample.

Any Help?????


Re: Playing MP3 files by amitranjan

amitranjan
Tue Feb 27 08:23:20 CST 2007

Hi,

It's not guarenteed that if Windows Media Player is playing the file then it
must be using DirectShow filter.
Do you have Windows Media Player present on the device?
Can you show some code sample on how you are trying to use the ocx.
Check this msdn article:
http://msdn2.microsoft.com/en-us/library/bb262335.aspx

Hope it helps.
--
Thanks and Regards
Amit Ranjan
blog:http://amitranjan.wordpress.com


"DRG123" wrote:

> On Feb 27, 5:33 pm, Amit <amitranjan@nospam-saskendotcom> wrote:
> > Hi,
> >
> > As for using directshow your device must have mp3 decoder as directshow
> > filter.Verify if your device has that.
> > As for using WMP control...check out this article:http://www.codeguru.com/cpp/w-p/ce/pocketpc/article.php/c10817/
> >
> > Hope it helps..
> > --
> > Thanks and Regards
> > Amit Ranjan
> > blog:http://amitranjan.wordpress.com
> >
> >
> >
> > "DRG123" wrote:
> > > I need to run MP3 & WMA files from my WINCE application .
> >
> > > I do not want to use Windows Media Player.
> >
> > > I have found out two ways:
> > > 1> Via DirectShow()
> >
> > > Here I have problem comes that file can not be rendered.
> > > Which seems to mean that I need MP3 codec.
> > > But, I do not know how to get one.How to use it.
> >
> > > 2> Via Windows Media Player ActiveX Control.
> > > But, I can not find the active X control(.ocx).
> >
> > > Please can anyone tell me from where & how to get the solution?- Hide quoted text -
> >
> > - Show quoted text -
>
> Thanks for response,
>
> First of all I do not know how to verify that my device has the
> required(MP3 codec) or not.
> But I guess it should have it because 1> I can play MP3 files via
> WMplayer in this device which means that this device can play such
> file and anyways WMPlayer also does the task by DirectShow(). 2> I
> have tried to use the code on PDA2K and Windows Mobile 5
>
> For the WMP control sample,
>
> I can not run the given exe directly on my device as I am getting
> error that component is missing.
> I can not find the required ocx file so even i can not create such an
> sample application. I have downloaded all references from that WMP
> sample.
>
> Any Help?????
>
>

Re: Playing MP3 files by DRG123

DRG123
Wed Feb 28 06:17:49 CST 2007

On Feb 27, 7:23 pm, Amit <amitranjan@nospam-saskendotcom> wrote:
> Hi,
>
> It's not guarenteed that if Windows Media Player is playing the file then it
> must be using DirectShow filter.
> Do you have Windows Media Player present on the device?
> Can you show some code sample on how you are trying to use the ocx.
> Check this msdn article:http://msdn2.microsoft.com/en-us/library/bb262335.aspx
>
> Hope it helps.
> --
> Thanks and Regards
> Amit Ranjan
> blog:http://amitranjan.wordpress.com
>
>
>
> "DRG123" wrote:
> > On Feb 27, 5:33 pm, Amit <amitranjan@nospam-saskendotcom> wrote:
> > > Hi,
>
> > > As for using directshow your device must have mp3 decoder as directshow
> > > filter.Verify if your device has that.
> > > As for using WMP control...check out this article:http://www.codeguru.com/cpp/w-p/ce/pocketpc/article.php/c10817/
>
> > > Hope it helps..
> > > --
> > > Thanks and Regards
> > > Amit Ranjan
> > > blog:http://amitranjan.wordpress.com
>
> > > "DRG123" wrote:
> > > > I need to run MP3 & WMA files from my WINCE application .
>
> > > > I do not want to use Windows Media Player.
>
> > > > I have found out two ways:
> > > > 1> Via DirectShow()
>
> > > > Here I have problem comes that file can not be rendered.
> > > > Which seems to mean that I need MP3 codec.
> > > > But, I do not know how to get one.How to use it.
>
> > > > 2> Via Windows Media Player ActiveX Control.
> > > > But, I can not find the active X control(.ocx).
>
> > > > Please can anyone tell me from where & how to get the solution?- Hide quoted text -
>
> > > - Show quoted text -
>
> > Thanks for response,
>
> > First of all I do not know how to verify that my device has the
> > required(MP3 codec) or not.
> > But I guess it should have it because 1> I can play MP3 files via
> > WMplayer in this device which means that this device can play such
> > file and anyways WMPlayer also does the task by DirectShow(). 2> I
> > have tried to use the code on PDA2K and Windows Mobile 5
>
> > For the WMP control sample,
>
> > I can not run the given exe directly on my device as I am getting
> > error that component is missing.
> > I can not find the required ocx file so even i can not create such an
> > sample application. I have downloaded all references from that WMP
> > sample.
>
> > Any Help?????- Hide quoted text -
>
> - Show quoted text -

Hi,

I have gone through registry but I did not found any MP3 codec.

I do not know how to confirm that my device has MP3 codec.

One more thing I would like to tell that I can Play "Windows Media
Player" normally on my device(PDA2K).

But at the same time, the example that u given in link do not work
either on device or on emulator of it or even on emulator of Windows
Mobile 5.0.

I hope I am clear with it.

As far as ocx files/Active X components are concerned, I would like
to tell that I have never done ActiveX Programming before but I was
hoping to go through with the sample with "Windows Media Player SDK
10".
But, While Creating the ActiveX code, as per guideline, I should have
found out the ocx file (ActiveX control) in

"On the Project menu, point to Add To Project, then click Components
and Controls. This displays the Components and Controls Gallery dialog
box and places you in the Gallery folder.

Open the Registered ActiveX Controls folder, select Windows Media
Player, and insert it into the project."

But unfortunately I can not find any ocx file in that(Registered
ActiveX Controls) folder.