fix toSessionDictionary method on ios

This commit is contained in:
Taner Sener
2022-01-10 09:11:47 +00:00
parent a3e235ca70
commit f4817dad4d
2 changed files with 13 additions and 13 deletions
@@ -1144,16 +1144,18 @@ public class FFmpegKitReactNativeModule extends ReactContextBaseJavaModule imple
}
protected static WritableMap toMap(final MediaInformation mediaInformation) {
WritableMap map = Arguments.createMap();
if (mediaInformation != null) {
WritableMap map = Arguments.createMap();
JSONObject allProperties = mediaInformation.getAllProperties();
if (allProperties != null) {
map = toMap(allProperties);
}
}
return map;
return map;
} else {
return null;
}
}
protected static WritableMap toMap(final JSONObject jsonObject) {