Difference between revisions of "ISDBPlayer::StopAfterCurrent"

From MediaMonkey Wiki
Jump to: navigation, search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{MethodDeclaration|SDBPlayer|ISDBPlayer|Sub StopAfterCurrent}}
+
{{MethodDeclaration|SDBPlayer|ISDBPlayer|Property Get/Let StopAfterCurrent As Boolean}}
 +
===Method description===
 +
 
 +
Stops playback after currently playing track.
 +
 
 +
{{Introduced|3.1.2}}
  
===Method description===
+
===Example===
  
Stops playback after current track.
+
<source lang="vb">
 +
'This example will show how to correctly implement
 +
'Correct = As Track is playing we set stop after current
 +
SDB.Player.Play
 +
SDB.Player.StopAfterCurrent = True
 +
MsgBox( "Enabled")
  
Note: Introduced in MediaMonkey 3.1.2
+
'Incorrect = As Track is not playing setting stop after current doesn't have effect (got reset when player starts playing)
 +
SDB.Player.Stop
 +
SDB.Player.StopAfterCurrent = True
 +
SDB.Player.Play
 +
MsgBox( "Disabled")
 +
</source>
  
 
[[Category:Scripting|{{PAGENAME}}]]
 
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 13:22, 24 April 2013

CoClass SDBPlayer, Interface ISDBPlayer

Property Get/Let StopAfterCurrent As Boolean

Method description

Stops playback after currently playing track.

Introduced in MediaMonkey version 3.1.2.


Example

'This example will show how to correctly implement
'Correct = As Track is playing we set stop after current
SDB.Player.Play
SDB.Player.StopAfterCurrent = True
MsgBox( "Enabled")

'Incorrect = As Track is not playing setting stop after current doesn't have effect (got reset when player starts playing)
SDB.Player.Stop
SDB.Player.StopAfterCurrent = True
SDB.Player.Play
MsgBox( "Disabled")