Page MenuHomePhabricator

[android] Implement getVideoInfo() function on Android
AcceptedPublic

Authored by angelika on Thu, Mar 20, 4:32 AM.

Details

Reviewers
bartek
Summary
Test Plan

Try to send a video and see video info

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