M
Mark Denardo
Does anyone have any good VB.NET example code that shows how to use the
NOTIFY option using the mciSendString API and then handle the return value.
The only examples I can find show the VB way using <Form>.hWnd
My program basically needs to start a media file and then be informed when
it has finished. Right now I have to set up a polling thread to check the
status of the playing media file, which works, but causes other parts of my
program to not be so neatly organized.
Also I noticed that when I call the SEEK command to set the position of an
already playing media file, it stops it. Is this the normal behavior or
perhaps I have something hidden in my code that is triggering it to stop.
For now when I call my Position method, I check to see if the program is
already playing, and if so, I follow my SEEK with a PLAY. That seems weird,
why even use the SEEK command then, why not just STOP and then PLAY the
media from the position point. What am I missing?
NOTIFY option using the mciSendString API and then handle the return value.
The only examples I can find show the VB way using <Form>.hWnd
My program basically needs to start a media file and then be informed when
it has finished. Right now I have to set up a polling thread to check the
status of the playing media file, which works, but causes other parts of my
program to not be so neatly organized.
Also I noticed that when I call the SEEK command to set the position of an
already playing media file, it stops it. Is this the normal behavior or
perhaps I have something hidden in my code that is triggering it to stop.
For now when I call my Position method, I check to see if the program is
already playing, and if so, I follow my SEEK with a PLAY. That seems weird,
why even use the SEEK command then, why not just STOP and then PLAY the
media from the position point. What am I missing?