RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMediaPlayer.Next Method

Moves to the beginning of the next track of the currently loaded medium.

Pascal
procedure Next;
C++
__fastcall Next();

If the current position is at the last track when Next is called, Next makes the current position the beginning of the last track. If the multimedia device doesn't use tracks, Next goes to the end of the medium. Next is called when the Next button on the media player control is clicked at runtime. 

Upon completion, Next stores a numerical error code in the Error property, and the corresponding error message in the ErrorMessage property. 

The Wait property determines whether control is returned to the application before the Next method has completed. The Notify property determines whether Next generates an OnNotify event. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!