Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Play mp3 files from my program
Message
 
To
08/06/1999 23:50:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00227764
Message ID:
00227977
Views:
22
Hi Pablo,

I believe you can use the Microsoft Windows Media activex control to do this. Drop one on your form, and in it's init be sure to put:
This.AutoPlay = .T.
The reason you need this is that the Play() method does not work properly from VFP for some reason. (Someone correct me if I'm wrong.)

Then, just open the file you want to play with:

ThisForm.MediaPlayer.Open("C:\MYMP3.MP3")

>I'd like to be able to play mp3 files from my program.
>Do you have any code to do this, and if not, do you know where i can find code to do this?
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform