-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Ads audio still playing when exiting the video (iOS only) #3716
Comments
They likely forgot to call the destroy method when the player is detached from the super view. While waiting for the fixes, you can use my patch-package file for a temporary solution. Please note that in this patch file, I've also added 2 events for iOS, (AD_CUEPOINTS & AD_ERROR) to grab all ad positions, error when loading adTagUrl and additional metadata of the playing ad break to know which ad position is playing (use cases are included in the file), these event will not included in others release without patching so use at your own risk. |
This works like a charm, thank you a lot! |
@Khuongnb do you want to create PR 😄 or I should do it ? |
Thank you for the patch, I confirm this is looking good, just need to add new events in the documentation ! |
Sorry for the late response. I created a PR for this issue, which only addresses the ad audio problem. The new ad events will need to be implemented on Android before they can be used to ensure functionality on both platforms, I will open another PR when it's available. Thanks everyone. |
PR has been merged, will be available in 6.0.0-RC.1 |
Version
"react-native-video": "6.0.0-rc.0"
What platforms are you having the problem on?
iOS
Architecture
Old architecture
What happened?
Using adTagUrl on iOS, load an ad and then go back or unmount the video component you can still hear the audio of the ad for 4-5 seconds.
This happen both on emulator and real device.
rn.ads.continue.playing.physical.device.mp4
On android is working as expected.
Reproduction
repository link
Reproduction
Step to reproduce this bug are:
Expected behaviour:
When exiting the video the ad should stop reproducing the audio.
The text was updated successfully, but these errors were encountered: