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

Google IMA Ad not working #341

Open Ankleshwar opened 8 months ago

Ankleshwar commented 8 months ago

<Player ref={playerRef} style={styles.player} config={{ autostart: true, playlist: [ { file: videoUrlString, image: posterUrlString, adClient: 'vast', adSchedule: [ { offset: '00:00:00', tag: 'https://n1.smartyads.com/?c=v&m=api&res=xml&placementId=2266&bundle=com.flixsnip&us_privacy=1---&coppa=0&lmt=0&dnt=0&gdpr=0&gdpr_consent=%7Bgdpr_consent_534%7D&cust_params=age%3D60-plus%26gender%3Dmale', }, ], }, ], styling: { colors: {}, }, advertising: { adClient: 'vast', adSchedule: [ { offset: '00:00:00', tag: 'https://n1.smartyads.com/?c=v&m=api&res=xml&placementId=2266&bundle=com.flixsnip&us_privacy=1---&coppa=0&lmt=0&dnt=0&gdpr=0&gdpr_consent=%7Bgdpr_consent_534%7D&cust_params=age%3D60-plus%26gender%3Dmale', }, ], }, }} onFullScreen={onFullScreen} onFullScreenExit={onFullScreenExit} />

"react": "18.2.0", "react-native": "0.71.14", "react-native-jw-media-player": "^0.2.43",

ed-cscosta commented 8 months ago

do you have any error loading the ad?

onPlayerAdError={({ nativeEvent }) => { console.log('Ad Error', nativeEvent); }}