reorganize; add stopwatch to dlna player for play time tracking
This commit is contained in:
@@ -163,6 +163,8 @@ func (p *playbackEngine) SetPlayer(pl player.BasePlayer) {
|
||||
|
||||
if needToUnpause {
|
||||
p.PlayTrackAt(p.nowPlayingIdx)
|
||||
// TODO - find a better way to wait until the players are ready
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
p.SeekSeconds(p.pendingPlayerChangeTimePos)
|
||||
p.pendingPlayerChange = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user