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

Crash when add library ExoPlayer 2.17.0 #786

Closed
yohan002 opened this issue Apr 5, 2023 · 5 comments
Closed

Crash when add library ExoPlayer 2.17.0 #786

yohan002 opened this issue Apr 5, 2023 · 5 comments
Labels

Comments

@yohan002
Copy link

yohan002 commented Apr 5, 2023

Environment:

  • ExoMedia version: 4.3.0
  • Device OS version: 10.0
  • Device Manufacturer: Google

I recently create feature for video using ExoPlayer 2.17.0 , but in my older feature it suddenly crash using this library. Do you have any suggestion about this?, cuz im kinda struggling with it and don't know how to fix it, maybe this is a stupid question but if you can please help me.

@brianwernick
Copy link
Owner

The APIs being used by ExoMedia internally change frequently with ExoPlayer updates, because of this externally updating the ExoPlayer version is not recommended. I understand that you likely want some of the newer functionality added in more recent ExoPlayer versions (it's been quite some time since we last released ExoMedia), however I would recommend waiting a little longer for us to release the 5.0.0 version (we have 2 bugs left then testing).

With that said, it's possible the crash you are seeing can be worked around; if you post the logcat exception we may be able to find a short-term solution so that you aren't blocked until 5.0.0 is released.

As a head's up; ExoMedia 5.0.0 will be using the Media3 library for the ExoPlayer.

@brianwernick
Copy link
Owner

An update on this, we decided to publish a 5.0.0-beta01 release; please see the README for additional details

@yohan002
Copy link
Author

yohan002 commented Apr 6, 2023

okay thank you for replying my issue, really appreciate it

@yohan002
Copy link
Author

yohan002 commented Apr 6, 2023

java.lang.RuntimeException: Unable to start activity ComponentInfo{TranslateActivity}: android.view.InflateException: Binary XML file line #483 in layout/activity_translate: Binary XML file line #483 in layout/activity_translate: Error inflating class com.devbrackets.android.exomedia.ui.widget.VideoView

Caused by: android.view.InflateException: Binary XML file line #2 in layout/exomedia_default_exo_surface_video_view: Binary XML file line #2 in layout/exomedia_default_exo_surface_video_view: Error inflating class com.devbrackets.android.exomedia.core.video.exo.ExoSurfaceVideoView

here is the error message, but i actually have this issue solved by still using your library for my new feature.

@brianwernick
Copy link
Owner

Ah, glad that you were able to get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants