Closed andrewjl-mux closed 2 months ago
Before this change we'd dispatch a viewinit
event whenever AVPlayer
currentItem
changed. This fix also dispatches viewend
before that, which is closer to how we work on Android and in mux-embed
.
This un-breaks the edge case where destroyPlayer
is called at the same time as when these other transitions are happening.