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

App crashed after reloading data to recycler view #12

Closed
RanjeethKumar55 opened this issue Dec 7, 2020 · 6 comments
Closed

App crashed after reloading data to recycler view #12

RanjeethKumar55 opened this issue Dec 7, 2020 · 6 comments

Comments

@RanjeethKumar55
Copy link

Hi pankaj,

App is getting crashed after loading data to recycler view , Please look into the issue

java.lang.IllegalStateException: recyclerView.getChildAt(0) must not be null
at com.master.exoplayer.MasterExoPlayerHelper$onScrollListener$1.onScrolled(MasterExoPlayerHelper.kt:191)
Thanks in advance

@pankaj89
Copy link
Owner

pankaj89 commented Dec 8, 2020

Hello Ranjeeth,
Can you try this version

implementation 'com.github.pankaj89:MasterExoPlayer:-SNAPSHOT'

If its going to work i will create a new release. Let me know.

@RanjeethKumar55
Copy link
Author

thank you , it is working now

@pankaj89
Copy link
Owner

pankaj89 commented Dec 8, 2020

Hello Ranjeeth,
You can now use new version

implementation 'com.github.pankaj89:MasterExoPlayer:1.4.5'

@pankaj89 pankaj89 closed this as completed Dec 8, 2020
@RanjeethKumar55
Copy link
Author

okay thanks alot

@RanjeethKumar55
Copy link
Author

RanjeethKumar55 commented Dec 8, 2020 via email

@pankaj89
Copy link
Owner

pankaj89 commented Dec 8, 2020

Hello Ranjeeth

To add thumbnail image, just place imageview in your item layout and send that reference to MasterExoPlayer.image inside onBindView of adapter. rest library will take care to hide or show it while playing video.

Note: Load thumbnail image on your imageview with any way like glide.
You can take a reference from MainActivity.kt

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