How to stop playback before any sound

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How to stop playback before any sound

Re: How to stop playback before any sound

by CarlitoGil » Wed Feb 16, 2011 10:20 am

Eyal wrote:Tools | Options | Player > Choose player = *.exe
Whoa, I didn't remember that setting

Re: How to stop playback before any sound

by Eyal » Wed Feb 16, 2011 10:06 am

How about setting MM to play through an external player?
Tools | Options | Player > Choose player = *.exe

I occasionally use this setting to use QCDPlayer.exe instead.

Re: How to stop playback before any sound

by CarlitoGil » Wed Feb 16, 2011 9:29 am

Maybe it should be suggested as a new event for MM4, OnBeforePlay

Re: How to stop playback before any sound

by Eyal » Wed Feb 16, 2011 9:25 am

According to SDB.Player.IsStartingPlayback, it seems we have to wait (and can't do anything) until playback has begun:
http://www.mediamonkey.com/wiki/index.p ... ngPlayback

.

Re: How to stop playback before any sound

by CarlitoGil » Wed Feb 16, 2011 4:14 am

trixmoto wrote:Couldn't you just mute MM? You can do this by setting the SDB.Player.Volume to 0.
The script should be conditional.
Only SOME files would be stopped.
Mute would affect all files.

Re: How to stop playback before any sound

by trixmoto » Wed Feb 16, 2011 4:09 am

Couldn't you just mute MM? You can do this by setting the SDB.Player.Volume to 0.

How to stop playback before any sound

by CarlitoGil » Wed Feb 16, 2011 3:30 am

I want to play some files with an external application.

How can I stop a song from playing before any sound is played?

Code: Select all

Call Script.RegisterEvent(SDB,"OnPlay","EventOnPlay")

Sub EventOnPlay()
	SDB.Player.Stop() ' By the time this is called it has already played a second or so
End Sub

Top