Skip to content
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

BannerAd content gets swapped with video that is currently loading instead of the Ad on Android. #1064

Open
alinchenescu opened this issue Apr 24, 2024 · 9 comments
Labels
platform-android Android applications specifically

Comments

@alinchenescu
Copy link

Hello,

Im currently developing an app that has as a core feature a TikTok style infinity scroll for videos.
Separated from this Widget I have a BannerAd,adaptive sticky banner, that is placed at the bottom of the screen.

[REQUIRED] Step 1: Describe your environment
Im using google_mobile_ads: ^5.0.0. For the video playback im using video_player: 2.8.6 and the videos are preloaded using preload_page_view: ^0.2.0.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.9, on macOS 14.0 23A344 darwin-arm64, locale en-RO)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] Connected device (3 available)
[✓] Network resources

Plugin Version
v5.0.0

[REQUIRED] Step 2: Describe the problem

ANDROID ONLY*
The Problems I'm facing is that sometimes if the video feed is scrolled and the videos are not fully preloaded the Banner shows a stuck frame of the video that is loading for the feed instead of the Ad. Since video_player uses Exoplayer I assume that the banner does as well and for some reason the BannerAd mixes the Ad content with the video im loading.
When the video finishes loading the banner goes back.
The issue can be seen the the Screenshot bellow.
Has anyover encountered something like this before or have any idea how to fix it? I have tried to use some other video players but their performance was not good enough for this use case.

Thanks a lot!
image

@malandr2
Copy link
Collaborator

Hey @alinchenescu, have you seen #1014? Any relation?

@malandr2 malandr2 added feedback required Further information is requested platform-android Android applications specifically labels Apr 24, 2024
@alinchenescu
Copy link
Author

Hey @alinchenescu, have you seen #1014? Any relation?

Doesn't seem to be related since I don't get the flicker and the result on my end is way different since the ads are the one affected and Im not using Webview.

@github-actions github-actions bot removed the feedback required Further information is requested label Apr 24, 2024
@malandr2
Copy link
Collaborator

@alinchenescu thanks, are you able to consistently reproduce this? Can you provide a minimum reproducible sample that we can use to troubleshoot?

@malandr2 malandr2 added the feedback required Further information is requested label Apr 29, 2024
@malandr2
Copy link
Collaborator

malandr2 commented May 6, 2024

Closing due to inactivity

@malandr2 malandr2 closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
@alinchenescu
Copy link
Author

@malandr2 Hi, sorry for the late reply, I have managed to created a minimum reproducible sample, also i have noticed a few more things:
-To replicate i think a video must be loading, during this time the Banner must also refresh and that is when the issue happens.
-To replicate it is best to keep scrolling to always have a video loading while waiting for the Banner to refresh,using the test Ad seem to happen very rarely so it's a bit tricky but when using custom ads with refresh time set to the lowest the issue is very obvious.

Sample url: https://github.com/alinchenescu/video_ads_bugg

@github-actions github-actions bot removed the feedback required Further information is requested label May 18, 2024
@github-actions github-actions bot reopened this May 18, 2024
@LTPhantom
Copy link
Collaborator

Hey @alinchenescu! Thanks for sharing the sample code. I played with it a little bit by replacing the banner ad with a webview and I am afraid it is related to the issue linked above.

screen-20240617-153144.mp4

This behavior is being tracked in flutter/flutter#148991

@thanhnguyen1121
Copy link

i am facing the same problem and i am sure i am not using AdWidget with Webview.

@thanhnguyen1121
Copy link

@alinchenescu did you find the solution?

@malandr2
Copy link
Collaborator

malandr2 commented Jul 8, 2024

Hi @thanhnguyen1121 if you can reproduce the issue as well, you can send over a minimal, reproducible sample and we can determine if the issue is related to flutter/flutter#148991 or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-android Android applications specifically
Projects
None yet
Development

No branches or pull requests

4 participants