-
Notifications
You must be signed in to change notification settings - Fork 379
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
Playback Stops After Scrolling through a Few Videos #244
Comments
Sample stacktrace: |
The You should also look at #214 and #128 as they might shed some light on your issue |
In short you need to specify As an extra; the |
Thanks for your feedback Brian. Great to know about the preview image, will use it. Earlier I tried to perform a manual release with On #128 I suppose this is the relevant description you're talking about:
In the context of creating Rows in Leanback, in general I haven't seen where |
Normally that Video View will clean itself up, which is why you are facing issues when a card view is reused. Calling The Leanback framework doesn't use the RecyclerView, nor did they do a good job with setting up MVP (but that is another discussion). In your case you need to do two things
NOTE: I'm assuming that the |
My intention is to only create the video view when its card is selected in VideoCardPresenter#onCreateViewHolder and calling |
Yeah, I typed that wrong. You should still be calling |
I see. Unfortunately, that doesn't seem to fix it either. Not surprising though, because BTW, > without nulling the mVideoView as it will get reused Sorry this is taking long :( but thanks for your patience |
Your |
Dynamic creation and removal seems to fix it, playback always works now! Now I have to figure out how apply layout attributes in code and also try to reduce the [expected] ever increasing memory usage. Thanks Brian! |
Include the following:
2.5.6
5.1.1 and 6.0
Android TV: various manufactures e.g Google Nexus, Razer Forge
Android TV emulator, Nexus Player, Razer Forge TV
Reproduction Steps
Expected Result
Actual Result
EMVideoView.setVideoUri()
andstopPlayback()
More info
I have read about some possibly related issues on the ExoPlayer project, like:
google/ExoPlayer#426 and google/ExoPlayer#590 but the ExoPlayer devs seem to insist that it's a harmless warning. Could it possibly related to memory problems? I'm stumped because from Memory Monitor usage seems pretty normal and the device doesn't throw any OOMs
The text was updated successfully, but these errors were encountered: