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
Video shows blank screen while audio and controls work #474
Comments
It is expected not to work on emulators, should work fine on pixel 3 though. |
But the sample app works on the same emulator?
|
Do you have the same problem with the sample app? if not there must be something wrong with the way you're using the library. |
Hello, I'm having this same issue did you managed to solve it? |
I'm also stuck with this problem, tried everything but still no luck. |
@AbelTesfaye found the solution for this. Turns out I didn't enable hardware acceleration in the manifest. Thanks in the <application
...
android:hardwareAccelerated="true">
...
</application> |
Its working awesome...Like a magic... |
thank you too!! (thanks to the owner too @PierfrancescoSoffritti ) |
Was the solution for me as well. @PierfrancescoSoffritti Can you please mark this as the solution as I have seen this in closed tickets as well as a lot of comments regarding this issue. |
It's already in the doc. |
@PierfrancescoSoffritti |
I suspect it has to do with webview/hardware acceleration on the emulators. |
Thanks for your quick reply. |
Oh my god thank you so much. I spend around 1 day trying to solve the black screen
|
Hello, I promise I've read all the threads on issues related to this and I've tried all the suggested remedies but still experiencing the following issues.
This is the screen that I see, the video view is basically a blank screen but the audio and controls work.
Here is my resource file, copied straight from the sample app:
`
Here is my Activity code:
override fun onCreate(state: Bundle?) { super.onCreate(state) setContentView(R.layout.activity_ads_video_detail) playerView = findViewById(R.id.youtube_player_view) lifecycle.addObserver(playerView) }
The environment I'm testing on:
I don't think it's a code related issue, but I'm running out of ideas on what to try next... please help! Thank you!
The text was updated successfully, but these errors were encountered: