fix(exoplayer): ensure player is stopped when invalid uri is configured

This commit is contained in:
olivier bouillet 2022-09-14 21:58:17 +02:00
parent 3f44d6ee25
commit f31e47f360

View File

@ -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();
} }
} }
} }