Page 1 of 1

Problem with SDB.Player.PlaybackTime from a VB.net program

Posted: Fri Oct 24, 2014 11:15 pm
by JustSomeGuy
When i use this

Code: Select all

        SDB.Player.Next()
        While SDB.Player.isStartingPlayback
            SDB.ProcessMessages()
        End While
        SDB.Player.PlaybackTime = 30000
MediaMonkey plays a fraction of a second of the beginning of the song and then skips to 30 second into the song.
How do I avoid playing the fraction of a second at the beginning of the song?

Re: Problem with SDB.Player.PlaybackTime from a VB.net prog

Posted: Sat Oct 25, 2014 12:42 am
by JustSomeGuy
I figured out a work around but I would still be interested in a cleaner way to do it.

Code: Select all

        SDB.Player.Stop()
        SDB.Player.CurrentSongIndex = SDB.Player.CurrentSongIndex + 1
        SDB.Player.CurrentSong.StartTime = 30000
        SDB.ProcessMessages()
        SDB.Player.Play()
        While SDB.Player.isStartingPlayback
            SDB.ProcessMessages()
        End While
        SDB.Player.CurrentSong.StartTime = 0

Re: Problem with SDB.Player.PlaybackTime from a VB.net prog

Posted: Sun Oct 26, 2014 1:12 pm
by mcow
You can modify SDB.Player.CurrentSong.StartTime before Play() instead of changing PlaybackTime dynamically.