From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBApplication, Interface ISDBApplicationEvents

Sub OnPlaybackEnd

Event description

This event is called when track playback is finished regardless of reason, i.e. either end of track is reached, user presses Stop, Next or Previous button, or there's any other reason for stopping playback. Message may be generated even when no play is active, such as on pressing Play immediately after startup, and after Shutdown.

Receipt of this event (or indeed, of any event) is not an indicator that the player has stopped. Testing SDBPlayer->IsPlaying on receipt of this message is not reliable; in some cases, IsPlaying will be False but the player is still active, switching to the next track to be played.

Introduced in MediaMonkey version