Page MenuHomePhabricator

[android] Implement getVideoInfo() function on Android
ClosedPublic

Authored by angelika on Thu, Mar 20, 4:32 AM.
Tags
None
Referenced Files
F5106934: D14469.id47546.diff
Tue, Apr 1, 9:50 AM
Unknown Object (File)
Mon, Mar 31, 10:10 PM
Unknown Object (File)
Mon, Mar 31, 7:51 PM
Unknown Object (File)
Mon, Mar 31, 1:47 PM
Unknown Object (File)
Sun, Mar 30, 6:24 PM
Unknown Object (File)
Sun, Mar 30, 4:12 AM
Unknown Object (File)
Sat, Mar 29, 5:43 PM
Unknown Object (File)
Sat, Mar 29, 1:27 AM
Subscribers

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

angelika held this revision as a draft.
native/expo-modules/comm-expo-package/android/src/main/java/app/comm/android/media/MediaModule.kt
68

I don't know what format is in the original ffmpeg implementation. It's not documented anywhere and when I've tested it the ffmpeg implementation didn't even return it. Because it's later compared to "mp4" to check if format is correct I'm just returning the file extension. We can run more complicated checks but I think it's good enough for our usecase.

bartek added inline comments.
native/expo-modules/comm-expo-package/android/src/main/java/app/comm/android/media/MediaModule.kt
68

I agree, let's keep it this way for now

This revision is now accepted and ready to land.Fri, Mar 21, 1:42 AM