Skip to content

Commit

Permalink
fix(android): random android crash (TheWidlarzGroup#3777)
Browse files Browse the repository at this point in the history
* perf: ensure we do not provide callback to native if no callback provided from app

* chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size

* chore: improve issue template

* fix(android): avoid video view flickering at playback startup

* fix(android): fix random crash
  • Loading branch information
freeboub authored May 17, 2024
1 parent d716e1a commit d4c9be2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1707,8 +1707,10 @@ public void setSrc(final Uri uri, final long startPositionMs, final long cropSta

public void clearSrc() {
if (srcUri != null) {
player.stop();
player.clearMediaItems();
if (player != null) {
player.stop();
player.clearMediaItems();
}
this.srcUri = null;
this.startPositionMs = -1;
this.cropStartMs = -1;
Expand Down

0 comments on commit d4c9be2

Please sign in to comment.