How to Read MP3 File Information With VFP


1. Launch the VFP application.
2. Enter the following code into the command prompt and press 'Enter:'oPlayer = createobject('WMPlayer.OCX.7')loItems = oPlayer.MediaCollectionloSong= loItems.add('c:\what time is it.mp3')? loSong.duration? loSong.getItemInfo('Artist')? loSong.getItemInfo('Title')? loSong.getItemInfo('Album')This will display the information of the MP3 files.
3. Enter the following code to control the music play and press 'Enter:'oPlayer.Controls.Play && Play the songYou have now read MP3 file information with VFP.

0 comments:

Post a Comment