-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Change SimpleExoPlayerView and not display smooth #2441
Comments
I think this is fixed in r2.2.0. If you believe otherwise, please file a new issue including all of the information clearly requested in the issue template, since there is not enough information provided here for us to assist. |
Thank you for your fast reply :) I try it on r2.2.0 and image won't be fuzzy, it's great! But there is a video render problem. When I switch, Image keeps still about seconds then start move,from the debug info, it tells that the video's renderedOutputBufferCount stop rising about seconds while audio's renderedOutputBufferCount keep rising. How can I get a smooth switch SimpleExoPlayerView and won't be any video render image delay? |
You can read a bit about why it's (unfortunately) difficult to do what you're trying to do in #2093, #1084 and #318. If possible you should handle the configuration change yourself as the demo app does, to avoid the problem. It's more work and you might have to do a bit of UI magic in code that would otherwise happen automatically, but it's possible. I'm fairly sure YouTube handles the orientation change itself, for example. |
Thank you so much 👍 |
Similar problem with r2.2.0. On version r2.1.0 video was with artefacts however. Note: workaround to this problem is call seekTo just before setPlayWhenReady(true) |
i had the same problem. |
I'm also facing same issue @s-a--m, have you got any solution? |
Finally I'm detected error happens when we call setPlayWhenReady before applying surface to player. Then after surface changed player stuck with old frame for some time. So workaround would be call seek just after applying surface:
|
When I use demo, I add some code at onConfigurationChanged to switch play in different SimpleExoPlayerView, the code is
It show like this when I switch it to new SimpleExoPlayerView

And seconds later, it renders correctly, the screenshot is below:

I try it on more than 3 devices, they all act same,include NEXUS 6
my question is how to switch SimpleExoPlayerView correctly, and how to avoid the bad render experience in the first seconds, thank you.
The text was updated successfully, but these errors were encountered: