Open jphilipstevens opened 3 years ago
threw this one in quickly. Let me know if you need more details
I believe videos are always mov
on iOS and mp4
on Android, but that's a good feature request - I'll take a look when I can 👍
@mrousavy point me to the native code where I set this and I can code it locally. We use patch-project so I think I could make some tweaks on 1.x and experiment. After a few weeks of making sleep optional, I may finally have some time to experiment hahahaha
@mrousavy can we add this feature?
@erennyuksell you can add this feature if you want yes
Hey @jphilipstevens - what approach did you go for? I'm not sure how I would get the mime-type, but effectively it just always is video/${codec}
, where codec
is either mp4
or mov
, right?
Came across this looking into something unrelated, but wanted to note the mime-type for mov
is video/quicktime
, not video/mov
. So for iOS it would be video/quicktime
and Android video/mp4
What
I noticed that the Video File object does not include the mime type. Including it in the VideFile would benefit those using the video to send over networks.
Alternatives/Workarounds
I am going to use https://www.npmjs.com/package/react-native-mime-types in order to get the mime from the file