react-native-jw-media-player
react-native-jw-media-player copied to clipboard
[iOS] Google IMA ads are playing in background
I am passing the ad URL like below in the config prop
<JWPlayer
ref={p => (this.JWPlayer = p)}
style={styles.player}
config={{
license:
Platform.OS === 'android'
? 'ANDROID_LICENSE'
: 'IOS_LICENSE,
playlist: [
{
file: 'https://playertest.longtailvideo.com/adaptive/oceans/oceans.m3u8',
image:
'https://d3el35u4qe4frz.cloudfront.net/bkaovAYt-480.jpg',
},
],
advertising: {
adClient: 'ima',
adVmap:
'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpreonly&cmsid=496&vid=short_onecue&correlator=',
},
}}
/>
The ad gets played and displayed in android but in iOS, the ad video is not visible. It gets played in the background. Once the ad video completes the actual video starts to play.
Please suggest any solution.
You find a solution to this one at all? We are seeing the same problem
You find a solution to this one at all? We are seeing the same problem
No @cheynewallace, we are still struggling...
Hi @bipin-ta @cheynewallace
How about the latest version? It's working for me.