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

During onPause should you requestVisibleBehind for playing back video? #70

Open
philotas opened this issue Jun 17, 2021 · 1 comment
Open

Comments

@philotas
Copy link

The Android TV docs describe how you can/should request to play video when onPause is called. Does that also apply to Fire OS? It does not say so in the recommendations for onPause for MultiMedia Apps

@levonlevonian
Copy link

levonlevonian commented Oct 21, 2021

Hi philotas,

Yes, it applies to Fire OS as well. Please also note that requestVisibleBehind() has been deprecated as of API Level 26:
https://developer.android.com/reference/android/app/Activity#requestVisibleBehind(boolean)

In addition to that, the function returns a boolean, which will tell you whether the request was successful (e.g. if the OS does not support that feature, you would get false when calling it, meaning you cannot count on the video to continue playing, which is decided by the OS). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants