chaimPaneth / react-native-jw-media-player

React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
MIT License
193 stars 92 forks source link

Add onAdImpression #331

Closed DevineDecrypter closed 9 months ago

DevineDecrypter commented 9 months ago

Hey, in the JW Player documentation, for Advertisements there are lots of events. Right now we have custom controls, and we would like to know when the AD starts to load and play. In the documentation, it can be achieved following the onAdImpression event. How can we achieve this ?

chaimPaneth commented 9 months ago

Hi, @DevineDecrypter @Mr30nama

Check the latest version iv'e added an onAdEvent callback with those.

chaimPaneth commented 9 months ago

This was added in latest versions.

DevineDecrypter commented 9 months ago

Thanks for adding the onAdEvent, i tried to use it, i logged the event but it was very vague. Is it possible for you to explain the usage of the event ?