RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMediaPlayer.Previous Method

Sets the current position to the beginning of the previous track if the position was at the beginning of a track when Previous was called.

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

If the position is at the first track or somewhere other than the beginning of a track when Previous was called, Previous sets the current position to the beginning of the current track. If the device doesn't use tracks, Previous sets the current position to the beginning of the medium, which is specified in the Start property. Previous is called when the Previous button on the media player control is clicked at runtime. 

Upon completion, Previous 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 Previous method has completed. The Notify property determines whether Previous generates an OnNotify event. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!