make sure to unpause on PlayFile in MPV player
This commit is contained in:
@@ -139,8 +139,11 @@ func (p *Player) PlayFile(url string) error {
|
|||||||
}
|
}
|
||||||
err := p.mpv.Command([]string{"loadfile", url, "replace"})
|
err := p.mpv.Command([]string{"loadfile", url, "replace"})
|
||||||
if err == nil {
|
if err == nil {
|
||||||
p.setState(player.Playing)
|
|
||||||
p.lenPlaylist = 1
|
p.lenPlaylist = 1
|
||||||
|
if p.status.State == player.Paused {
|
||||||
|
return p.Continue()
|
||||||
|
}
|
||||||
|
p.setState(player.Playing)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user