On May 2, 10:26 pm, wk <saura...[ at ]gmail.com> wrote:
[Quoted Text] > Hi, > I need to create a plugin for stand alone windows media player 10 or > 11(preferably 11). I need to reposition the movie current position, > once it reaches say time position 01:28:32, so is there an effecient > way for the player sdk to raise an even when this time is reached, so > that I can do a seek to the new position? > > The video might be AVI or MPG. > > Please help. > > Please note I do not need to do this for an embedded player control.
You can physically add a marker to the media file (using an SDK downloadable from Microsoft), then add a handler for the marker events in your code.
Or you can do what I do and imbed WMP in my application and have a separate service timer kick off every 500ms to check the current positon of the player every half second.
Unfortunately both ways are "klugy" unless/until WMP has some sort of "marker collection" that could be populated at run time with your milestones. Currently there is no way to on-the-fly add markers on a "per play" basis, (that I know of), you have to physically modify the media file itself and imbed the markers (arghhhhh). (Maybe if I'm not the only one asking Microsoft to add a markers collection to the interface they will do it in the next version)
|