Skip to content

Commit

Permalink
Emit paused and playing events when loading new source
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Sep 25, 2023
1 parent 9c7597b commit 60ba18c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ loop:
}

cmd.resp <- nil

if data.paused {
p.ev <- Event{Type: EventTypePaused}
} else {
p.ev <- Event{Type: EventTypePlaying}
}
}
case playerCmdPlay:
if out != nil {
Expand Down

0 comments on commit 60ba18c

Please sign in to comment.