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

Hello : How to set focus and handle on Skip Button in IMA extensions of exoplayer. #3258

Closed
kinhdang opened this issue Sep 11, 2017 · 7 comments
Labels

Comments

@kinhdang
Copy link

Hello All !

Updated version 2.5.2 for IMA play ads working very good, but we have a little troubles build app in android box (setopbox), when ads have Skip Button, How to set focus on Skip Button ? and handle Button Skip to ignore ads.
anyone knows, please give idea to resolve this problems.

Thanks,

@andrewlewis
Copy link
Collaborator

Unfortunately, this is a known issue with the Android IMA SDK. Please see this thread for details.

The recommendation for now seems to be to customize your serving settings to exclude skippable ads. I've also heard about a workaround where you hide the ad overlay UI (passed to the ImaAdsMediaSource) on Android TV devices, though this is not officially supported and I haven't tried it.

[Internal bug for reference: 62371030]

@kinhdang
Copy link
Author

Thanks your reply.

@ojw28 ojw28 reopened this Sep 14, 2017
@ojw28 ojw28 added bug and removed question labels Sep 14, 2017
@ojw28
Copy link
Contributor

ojw28 commented Sep 14, 2017

We're going to try and add a workaround for this issue.

ojw28 pushed a commit that referenced this issue Sep 15, 2017
Issue: #3258

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168669969
@ojw28
Copy link
Contributor

ojw28 commented Sep 18, 2017

There is a workaround that enables the skip button in dev-v2. We'll push a bug-fix only release including this change this week.

@ojw28 ojw28 closed this as completed Sep 18, 2017
ojw28 pushed a commit that referenced this issue Sep 19, 2017
Issue: #3258

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168669969
ojw28 pushed a commit that referenced this issue Sep 20, 2017
Issue: #3258

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168669969
@nguyenphi24
Copy link

Hi @ojw28 , i have already updated to new version (2.5.3), IMA works perfectly with Simpleexoplayerview. But i use exo with Surfaceview, i cannot press Skip ads button, how to use IMA on Android TV with Surfaceview ?

@ojw28
Copy link
Contributor

ojw28 commented Sep 30, 2017

If you're using your own layout instead of SimpleExoPlayerView then you'll have to figure out how to make it so that the button can receive focus. A good starting point for this would be to look at what we did to SimpleExoPlayerView in the change referenced above, and see if you can do something equivalent in your own code.

@nguyenphi24
Copy link

Thanks @ojw28

@google google locked and limited conversation to collaborators Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants