question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fatal Exception: java.lang.IllegalStateException: com.potyvideo.library.AndExoPlayerView.onPlayerError (AndExoPlayerView.java:1)

See original GitHub issue

i have an issue is sometime my app crash when i tap to play video this is my firebase log: com.google.android.exoplayer2.util.Assertions.checkState (Assertions.java:5) com.google.android.exoplayer2.ExoPlaybackException.getSourceException (ExoPlaybackException.java:1) com.potyvideo.library.AndExoPlayerView.onPlayerError (AndExoPlayerView.java:1) com.google.android.exoplayer2.ExoPlayerImpl.lambda$updatePlaybackInfo$9 (ExoPlayerImpl.java:1) com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$Y5tnvNJdNEscTPhujmeSdRy1n7Y.invoke (-.java:1) com.google.android.exoplayer2.util.ListenerSet$ListenerHolder.invoke (ListenerSet.java:4) com.google.android.exoplayer2.util.ListenerSet.lambda$queueEvent$0 (ListenerSet.java:4) com.google.android.exoplayer2.util.-$$Lambda$ListenerSet$NbKDn9xtItiyMgYZmjIx_Sv1FFQ.run (-.java:4) com.google.android.exoplayer2.util.ListenerSet.flushEvents (ListenerSet.java:2) com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo (ExoPlayerImpl.java:2) com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo (ExoPlayerImpl.java:5) com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$nOBJYkeEQ2uz3sBKLToLWmzrgZk.run (-.java:5) android.os.Handler.handleCallback (Handler.java:938) android.os.Handler.dispatchMessage (Handler.java:99) android.os.Looper.loop (Looper.java:263) android.app.ActivityThread.main (ActivityThread.java:8267) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:612) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1006)

In my programmatically, i have calls startPlayer() in onStart() callback and pausePlayer() in onStop() andExoPlayerView.startPlayer() andExoPlayerView.pausePlayer() in addition, i calls setSource() inside BindingAdapter file view.setSource(url)

anyone can help me, pls? this really is urgent issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
HamidrezaAmzcommented, Jan 27, 2022

Hi @baonq-2356 onPlayerError is deprecated, I have update ExoPlayer core and implemented new interface for onPlayerError Just update library into newest version.

0reactions
phucnv-2558commented, Sep 8, 2021

@HamidrezaAmz This may be because the release time is too short, can you increase it from 500ms to 1000ms? or in your library is it possible to make players public?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ExoPlayer shows black screen instead of loading video (only ...
I'm using ExoPlayer library to load videos into my recycler view. The problem is that sometimes ExoPlayer show black screen instead of ...
Read more >
com.potyvideo.library.AndExoPlayerView.onPlayerError ...
Fatal Exception : java.lang.IllegalStateException: com.potyvideo.library.AndExoPlayerView.onPlayerError (AndExoPlayerView.java:1)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found