Recently started working with Btmovin player on our react native project and I am noticing that on Android, after a hot reload, there is only audio from the player on a blank screen.
Things start working normally if the app if Force stopped and started again. And after a hot reload, it’s a blank screen just with audio.
Is this a bug or is there anything wrong with the integration?
IOS seems to be fine
React native and player version:
“react-native”: “0.76.6”,
“bitmovin-player-react-native”: “^0.39.0”,
The issue you’re observing with the Bitmovin Player in React Native on Android after a hot reload is expected behavior and is not necessarily a bug in the player. Hot reload can cause native components or views to not re-render correctly after a reload, specifically for video players that use a native UI surface like TextureView
or SurfaceView
. This is why you get audio with a blank screen - the player continues to run, but the video surface is not being re-initialized correctly. The reason that iOS does not appear to have the same issue is that it handles hot reloads in a different way. It is recommended to avoid hot reload in the development of video players, and to instead do a full reload or restart of the application, considering you will have to update all the Player instances in case of reload. And make sure that player instance is being destroyed and created again on reload if needed.