signal correct play pos to OS when switching back to MPV player
This commit is contained in:
@@ -496,7 +496,7 @@ func (p *Player) eventHandler(ctx context.Context) {
|
|||||||
}
|
}
|
||||||
switch e.Event_Id {
|
switch e.Event_Id {
|
||||||
case mpv.EVENT_PLAYBACK_RESTART:
|
case mpv.EVENT_PLAYBACK_RESTART:
|
||||||
p.seeking = false
|
fallthrough
|
||||||
case mpv.EVENT_SEEK:
|
case mpv.EVENT_SEEK:
|
||||||
p.seeking = false
|
p.seeking = false
|
||||||
p.InvokeOnSeek()
|
p.InvokeOnSeek()
|
||||||
|
|||||||
Reference in New Issue
Block a user