Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP plays WMP
Message
From
28/12/2004 18:25:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/12/2004 18:37:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00972406
Message ID:
00972745
Views:
29
>Thank you for the answer and the ideas. I want to try to write a complete internet radio station, so I need to be able to play only one tune at a time. I also need a way to turn on the microphone. What is the code to play one tune?

Very simple, almost crude:
	Thisform.Olecontrol1.FileName=lcFile
	Thisform.Olecontrol1.Play
lcFile is a fullpath to a mp3, mpg, avi or any other playable file. Olecontrol1 is the WMP OCX object (you can see I didn't even bother to give it a sensible name :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform