mirror of
https://github.com/arthenica/ffmpeg-kit.git
synced 2026-06-06 20:27:34 +00:00
fix toSessionDictionary method on ios
This commit is contained in:
+6
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user