Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP plays WMP
Message
De
28/12/2004 18:25:27
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/12/2004 18:37:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00972406
Message ID:
00972745
Vues:
22
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform