fix(android): source metadata compare function (#3775)

This commit is contained in:
YangJH 2024-05-17 21:44:48 +09:00 committed by GitHub
parent 66e0ba579b
commit 6455380f9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1648,7 +1648,7 @@ public class ReactExoplayerView extends FrameLayout implements
public void setSrc(final Uri uri, final long startPositionMs, final long cropStartMs, final long cropEndMs, final String extension, Map<String, String> headers, MediaMetadata customMetadata) {
if (this.customMetadata != customMetadata && player != null) {
if (!Util.areEqual(this.customMetadata, customMetadata) && player != null) {
MediaItem currentMediaItem = player.getCurrentMediaItem();
if (currentMediaItem != null) {