How to hide close player button when controls are not on the screen

I have a problem. Since there is no default close icon inside player controls, I added a custom one. But I need to hide it when Bitmovin controls are hidden. Is there any event like onControlsHide/onControlsShow in other video-player react native libraries? So for now it is always on the screen and it is not looking good.

Hi @mykola_parfenov!

Thank you for your question!

One option is to customize the player UI itself. It is available open-source here: GitHub - bitmovin/bitmovin-player-ui: The Bitmovin Adaptive Streaming Player UI

Apparently we already have an example on how to add a close button to the UI:

This is showcased with React Native Example application when using the sample “Custom HTML UI”.
You can find the code for it here: bitmovin-player-react-native/example/src/screens/CustomHtmlUi.tsx at development · bitmovin/bitmovin-player-react-native · GitHub