ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
08-04-2005 07:16 AM
09-02-2005 09:37 AM - edited 09-02-2005 09:37 AM
Hi Paco, not sure I understand the question, but I've got a good idea what your problem is.
You can see from the Windows Media Player SDK documentation (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/playerobject.asp) that the EndOfStream event is "Reserved for Future Use". Which, in Microsoft speak, means it's broken :-). I played with it for a while and was unable to get it to fire. I think you'll have a lot more luck using the PlayStateChange method. It requires slightly more work, since you have to check whether the play state is wmppsStopped, but it works.
Regards,
Ryan K.
Message Edited by ryank on 09-02-2005 09:37 AM