Couldnt play MP3 in MediaPlayer6.4 on Windows 2000

ramaraj
10-02-2001, 08:39 PM
Hi,

We are creating an ActiveX control (ocx) in VB with Media Player 6.4 control.
Now we need to play a mp3 file on this media player using http protocol over the net.

i.e. something like....

mediaplayer1.filename = "http://206.143.85.64/audio/mp3/..../audiofile.mp3".
mediaplayer1.play

in the click event of a flex grid.

This ocx is working fine on Windows 95/98/NT machines but not on Windows 2000/ME.

In windows 2000/ ME macines the filename property of the mediaplayer is not set to the supplied URL instead it is set to "".

Even ".wav" files could not be played.
What might be the problem?

Please help us out.

Thank You,
Raj.

orufet
10-02-2001, 08:43 PM
Does it work if the wav file is played locally? Just a guess, but this is one thing that I would try first...

"I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire

ramaraj
10-02-2001, 09:17 PM
Yes it is playing mp3 and wav if played locally.

i.e. mediaplayer1.filename = "c:\xyz\audio1.mp3" is working fine.

but as said if I specify a URL using http protocol it is not working in Windows 2000/ME.

orufet
10-02-2001, 09:25 PM
I'm not too familiar with the Media Player Control OR Windows ME/2K, but....

Perhaps this is a bug in the Media Player control? try setting the url to a variable and using that variable, like this....
<pre>Dim FileURL As String
FileURL = "http://www.yoursite.com/yourfile.mp3"
MediaPlayer1.FileName = FileURL
</pre>


This should not make a difference (logically), but I'm curious to see if it's a bug in the Windows Media Player Conrtol, or if MS just wants you to be using a newer version of the OCX with Win2K and ME, which is very possible.


"I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire

ramaraj
10-03-2001, 07:15 AM
No, it wont work. I tried it already.

A very strange problem.

If you have Windows 2000 or ME and VB 6.0 on it then just try this out....

Open a project. Add mediaplayer 6.4 component.
Place the mediaplayer on the form. Let it be mediaplayer1.
Then in the form load event just type in the following two lines of code...

mediaplayer1.filename = "http://someipaddress/path/mp3filename.mp3"
mediaplayer1.play

Thats it.
No matter how I alter the code I am not able to set the Filename property to take the specified URL.

But, if the voice file is an ASF file with an ASF extension it is working fine. But if it is anything else like wav or mp3 its failing. Raising an error "80004005" which has no specific reason.

Again one more interesting thing is that if I type the above mensioned URL in a browser its working fine on windows 2000. Its also working when I embed the media player 6.4 control in a HTML page. That is anoying me? Why the hell is it not working in VB on windows 2000 / ME?

Do I need to set any other parameters. Is there any patch for media player 6.4 to work with windows 2000 / ME? Any round about way of doing it? Where else should I post this? Many such questions...

Anyway thanks,
Raj.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum