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

PreviewSeekBar cannot be cast to com.google.android.exoplayer2.ui.TimeBar [Exoplayer 2.4.0] #9

Closed
Khoosham opened this issue May 15, 2017 · 4 comments

Comments

@Khoosham
Copy link

Khoosham commented May 15, 2017

Getting the following error as from exoplayer 2.4.0. i think they have change the control from a seekbar to a timebar ? The code was working well on Exoplayer 2.3.1

E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.exoplayer2.ui.SimpleExoPlayerView
com.github.rubensousa.previewseekbar.PreviewSeekBar cannot be cast to com.google.android.exoplayer2.ui.TimeBar

these might help you
https://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer2/ui/DefaultTimeBar.html
https://google.github.io/ExoPlayer/doc/reference/index.html?com/google/android/exoplayer2/ui/TimeBar.OnScrubListener.html

Any fix plz ?

@rubensousa
Copy link
Owner

I'll need to implement the TimeBar interface in PreviewSeekBar. If you want to help, please do and send a PR. I don't have much time right now.

@mdtuyen
Copy link

mdtuyen commented Jul 23, 2017

Exoplayer < 2.4 have bug outofmemory, we need upgrage library

@rubensousa
Copy link
Owner

Fixed on 1.0. Sorry for the delay

@Khoosham
Copy link
Author

Thanks a lot @rubensousa 👍

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

3 participants