Skip to content

Commit

Permalink
Add timestamp to metadata callback
Browse files Browse the repository at this point in the history
On Android ID3 tags are not synced to video properly, need to sync to timestamp on JS side
  • Loading branch information
airman00 authored Oct 3, 2019
1 parent 4fb0b38 commit 219ecb2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 219ecb2

Please sign in to comment.