From 219ecb22a6849ecf8e0badbab6eb64ff4fab3e5e Mon Sep 17 00:00:00 2001 From: Eric Forkosh Date: Thu, 3 Oct 2019 10:54:29 -0400 Subject: [PATCH] Add timestamp to metadata callback On Android ID3 tags are not synced to video properly, need to sync to timestamp on JS side --- android/src/main/java/com/brentvatne/react/ReactVideoView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/java/com/brentvatne/react/ReactVideoView.java b/android/src/main/java/com/brentvatne/react/ReactVideoView.java index 24e99462b8..5608a2ff97 100644 --- a/android/src/main/java/com/brentvatne/react/ReactVideoView.java +++ b/android/src/main/java/com/brentvatne/react/ReactVideoView.java @@ -684,6 +684,7 @@ public void onTimedMetaDataAvailable(MediaPlayer mp, TimedMetaData data) { WritableMap id3 = Arguments.createMap(); id3.putString(EVENT_PROP_METADATA_VALUE, jsonDataString); id3.putString(EVENT_PROP_METADATA_IDENTIFIER, "id3/TDEN"); + id3.putString("timestamp", Long.toString(data.getTimestamp())); WritableArray metadata = new WritableNativeArray();