update slider once per second always
This commit is contained in:
+1
-1
@@ -375,7 +375,7 @@ func (p *Player) eventHandler(ctx context.Context) {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
default:
|
||||
e := p.mpv.WaitEvent(0.2 /*timeout seconds*/)
|
||||
e := p.mpv.WaitEvent(1 /*timeout seconds*/)
|
||||
if e.Event_Id != mpv.EVENT_NONE {
|
||||
//log.Printf("mpv event: %+v\n", e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user