muxinc / mux-stats-sdk-react-native-video

18 stars 19 forks source link

Mux throw error at `onEnd` when used with `react-native-video-controls` #10

Open siriwatknp opened 3 years ago

siriwatknp commented 3 years ago

image

If wrap component with Video from react-native-video-controls, this error popup when video finishes playing.

From my debugging, I found that state.playerID is null at the moment onEnd is called.

stevenlyons commented 2 years ago

Hi @siriwatknp like the other issue, apologies for the very delayed response and fix. In the v0.3.0 release, we made some fixes to the player references that should address this issue. If you have time, could you re-test and see if this is resolved for you.