ISDBApplicationEvents::OnPause: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
(Correction and enhancements to documentation)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
===Event description===
===Event description===


This event is called whenever playback is paused.
This event is called whenever the [[ISDBPlayer::Pause|SDBPlayer.Pause]] function is called.
 
The Pause function is a toggle.  If a track was playing, the track will now be paused; if the track was paused, the track will have resumed playback.  Therefore, if the current playback state is important, you should check the state of [[ISDBPlayer::isPaused|SDBPlayer.isPaused]] (and maybe also [[ISDBPlayer::isPlaying|SDBPlayer.isPlaying]]) on receipt of this event.
 
('''TBD:''' what happens if Pause is called while playback is stopped?)


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 18:43, 29 May 2011

CoClass SDBApplication, Interface ISDBApplicationEvents

Sub OnPause


Event description

This event is called whenever the SDBPlayer.Pause function is called.

The Pause function is a toggle. If a track was playing, the track will now be paused; if the track was paused, the track will have resumed playback. Therefore, if the current playback state is important, you should check the state of SDBPlayer.isPaused (and maybe also SDBPlayer.isPlaying) on receipt of this event.

(TBD: what happens if Pause is called while playback is stopped?)