fix(exoplayer): ensure player is stopped when invalid uri is configured
This commit is contained in:
parent
3f44d6ee25
commit
f31e47f360
@ -182,6 +182,8 @@ public class ReactExoplayerViewManager extends ViewGroupManager<ReactExoplayerVi
|
|||||||
if (srcUri != null) {
|
if (srcUri != null) {
|
||||||
videoView.setRawSrc(srcUri, extension);
|
videoView.setRawSrc(srcUri, extension);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
videoView.clearSrc();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user