playing mp3 files with media player control

S

Stuart McGraw

Anybody use the Windows Media Player
Control in Access for playing mp3 files?
I am trying to play an mp3 file using the
Windows Media Player Control on a form.
I set the fie name to play in code in the
form's onLoad event. If I set it to a .wav
file the media control is enabled and clicking
the play button plays the file. If I change the
filename to a .mp3 file, the control is disabled.
Is there something else I need to do in addition
to changing the filename?
 
S

Stuart McGraw

Hmm, no replies.... does no one use the widows media player
control on access forms for playing mp3 files? even a "yes it
works" answer would help me.
 
L

Larry Daugherty

I guess no one here uses media player on their forms. I've added
microsoft.public.access.activexcontrol so that someone there might jump in.

FWIW, RTF gets a few frowns.

HTH
 
A

Albert D. Kallal

I would actually just place a button on the form, and launch the .mp3 file.

Trying to make the player run "inside" the form is not very workable.

So, to launch the mp3 file, you can use:


Application.FollowHyperLink "c:\my music\abc.mp3"

Or, if you have a field on the form with the path name, you go:

Application.FollowHyperLink me!SongName

The above will work, and even work for different versions of mp3 players,
even if you do not use the media player...
 
S

Stuart McGraw

Thank you all, for the info.
Reason I don't just launch an app to play an mp3 is that
I actually want to play only a part of a file (e.g play 8.5
seconds starting at 80 seconds into the file). I thought
the media player control had a property that would allow
this but I guess it's moot, since no one has said that they
ever got it to play mp3 files. I guess I will try to figure
out how to use MCI.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top