Open sntg-p opened 3 weeks ago
Hi, thanks for reporting the issue!
@sntg-p can you provide your <Video call please ? do you have ads url and no source ?
@freeboub I have a source, I do not render the player if uri
is not defined.
<Video
source={{ uri }}
paused={state.paused}
style={styles.videoCont}
resizeMode='contain'
fullscreen={true}
ignoreSilentSwitch={IgnoreSilentSwitchType.IGNORE}
onBuffer={handleBuffering}
onLoadStart={handleLoadStart}
onLoad={handleLoad}
onProgress={handleProgress}
onEnd={handleEnd}
onError={onError}
ref={videoRef}
adTagUrl='https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_preroll_skippable&sz=640x480&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator='
onReceiveAdEvent={(e) => console.log(e)}
/>
I have just try to reproduce on emulator, and the ads are playing correctly... I suspect something linked to your build... Maybe desugaring the apk can be the solution ... https://github.com/androidx/media/issues/1312#issuecomment-2090448787
Version
6.4.3
What platforms are you having the problem on?
Android
System Version
14
On what device are you experiencing the issue?
Simulator
Architecture
Old architecture
What happened?
I'm expecting a test ad to get shown but instead the app seems to crash.
Reproduction
repository link
Reproduction
I'm using a test VAST URI provided by Google as
adTagUrl
. I've also set theonReceivedAdEvent
to log the received event, which gets fired before and after the exception is thrown.