Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Media player
Message
De
02/09/2005 17:26:35
 
 
À
02/09/2005 17:13:01
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
01046392
Message ID:
01046424
Vues:
26
Thanks Herman.
That's the sample I've been looking at but I missed the *.wpl as the filetype for the playlist. Still the xml looks like it has some data in it that I would be hard pressed to reproduce. Like
(tid="{5A84D4A8-520A-4773-BED2-072CAE6F7BB9}"/>)
I've been able to get the following code to work:

oWMP = createobject('WMPlayer.ocx')
collx = owmp.playlistCollection.getAll()
? collx.Item(3).name
? collx.item(3).item(1).name
? collx.item(3).item(2).name
? collx.item(3).item(3).name
? collx.item(3).item(4).name
? collx.item(3).item(5).name


:)


>It's in:
>
>"New in Visual Foxpro 9.0" -> "Fox Media Player"
>
>When I run this sample it has three selection:
>
>- Internet Music
>- CD
>- File/Playlist
>
>Just select the third one and there it goes. It gives a selection for *.WPL
>
>
>>I am using VFP 9 solutions sample. I don't see anything about playlists. Where should I look?
>>
>>>>I've been trying to expand my understanding of automation by playing around with Calvin Hsia's solutions sample of the FoxMediaPlayer. What I can't figure out is if I wanted to construct and send a playlist to the WMP rather than a single song title, how would I do it. Specifically, what would be the form of the playlist and how to delineate the titles, and second how would you launch the playlist? I thought I could get some help via the object browser but alas with my limited knowledge of the subject it was of no help.
>>>>
>>>>Also, to abandon the sample program and start from scratch, I can oWMP = createobject('WMPlayer.ocx') to get it started but I can't even figure out how to make it visible. (Maybe that's the wrong object to launch?)
>>>>
>>>>Any insights will be appreciated.
>>>
>>>
>>>Are you using VFP9? I haven't play with this but take a look at VFP solution sample. It has a selection for file or playlist
>>>
>>>New in Visual Foxpro 9.0 -> Fox Media Player.
>>>
>>>HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform