Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MCI Notification for Media Files

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am looking for a Visual Foxpro 6.0 Code Snippet that uses the MCI interface to play a media file using Notification, and, the associated Notification Stub Routine which is called when the media is finished playing.

thanks.
Mike Sullivan
 
Hi Mike,

Rick Strahl created a VFP class that provides an interface to the Windows API MCI functions. Take a look at:


The FFC also have an example, but its not quite as refined as Ricks. If you're still interested, the class library is named _multimedia.vcx. Search your hard drive.

AFA notification goes, VFP6 doesnt support callback functions, which is what is required in order to receive notification of when the multimedia file has completed playing.(I've heard that VFP7 will, but it's yet to be seen.)

On a side note, if you use the MCI ActiveX interface, you can take advantage of the DONE event when the NOTIFY property is set to true. There are several samples in the VB docs. Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top