Details
Details
- Reviewers
bartek - Commits
- rCOMM7f1a59810cb8: [ios] Implement getVideoInfo() function on iOS
Try to send a video and see video info
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
native/expo-modules/comm-expo-package/ios/MediaModule.swift | ||
---|---|---|
4 ↗ | (On Diff #47481) | This is copied from the official apple docs: https://developer.apple.com/documentation/avfoundation/avassettrack/formatdescriptions#Discussion |
71 ↗ | (On Diff #47481) | 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. |
native/expo-modules/comm-expo-package/ios/MediaModule.swift | ||
---|---|---|
63 ↗ | (On Diff #47481) | According to the docs link you posted above, isn't this way of accessing format descriptions deprecated? |
native/expo-modules/comm-expo-package/ios/MediaModule.swift | ||
---|---|---|
63 ↗ | (On Diff #47481) | It is deprecated but the new way is available for ios 15+ and we're supporting ios 13+ |