|
|
@ -724,16 +724,14 @@ RCT_EXPORT_METHOD(getExternalLibraries:(RCTPromiseResolveBlock)resolve rejecter: |
|
|
|
dictionary[KEY_SESSION_START_TIME] = [NSNumber numberWithDouble:[[session getStartTime] timeIntervalSince1970]*1000]; |
|
|
|
dictionary[KEY_SESSION_START_TIME] = [NSNumber numberWithDouble:[[session getStartTime] timeIntervalSince1970]*1000]; |
|
|
|
dictionary[KEY_SESSION_COMMAND] = [session getCommand]; |
|
|
|
dictionary[KEY_SESSION_COMMAND] = [session getCommand]; |
|
|
|
|
|
|
|
|
|
|
|
if ([session isFFprobe]) { |
|
|
|
if ([session isFFmpeg]) { |
|
|
|
if ([session isMediaInformation]) { |
|
|
|
|
|
|
|
MediaInformationSession *mediaInformationSession = (MediaInformationSession*)session; |
|
|
|
|
|
|
|
dictionary[KEY_SESSION_MEDIA_INFORMATION] = [FFmpegKitReactNativeModule toMediaInformationDictionary:[mediaInformationSession getMediaInformation]]; |
|
|
|
|
|
|
|
dictionary[KEY_SESSION_TYPE] = [NSNumber numberWithInt:SESSION_TYPE_MEDIA_INFORMATION]; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
dictionary[KEY_SESSION_TYPE] = [NSNumber numberWithInt:SESSION_TYPE_FFPROBE]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
dictionary[KEY_SESSION_TYPE] = [NSNumber numberWithInt:SESSION_TYPE_FFMPEG]; |
|
|
|
dictionary[KEY_SESSION_TYPE] = [NSNumber numberWithInt:SESSION_TYPE_FFMPEG]; |
|
|
|
|
|
|
|
} else if ([session isFFprobe]) { |
|
|
|
|
|
|
|
dictionary[KEY_SESSION_TYPE] = [NSNumber numberWithInt:SESSION_TYPE_FFPROBE]; |
|
|
|
|
|
|
|
} else if ([session isMediaInformation]) { |
|
|
|
|
|
|
|
MediaInformationSession *mediaInformationSession = (MediaInformationSession*)session; |
|
|
|
|
|
|
|
dictionary[KEY_SESSION_MEDIA_INFORMATION] = [FFmpegKitReactNativeModule toMediaInformationDictionary:[mediaInformationSession getMediaInformation]]; |
|
|
|
|
|
|
|
dictionary[KEY_SESSION_TYPE] = [NSNumber numberWithInt:SESSION_TYPE_MEDIA_INFORMATION]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return dictionary; |
|
|
|
return dictionary; |
|
|
|