开发者

What type of file does MediaStore.ACTION_VIDEO_CAPTURE give back?

开发者 https://www.devze.com 2023-02-01 01:04 出处:网络
To capture video in an Android app, I\'m using the MediaStore.ACTION_VIDEO_CAPTURE action, with EXTRA_OUTPUT to specify the location of the new video file. But how do I know what the MIME type is? Rig

To capture video in an Android app, I'm using the MediaStore.ACTION_VIDEO_CAPTURE action, with EXTRA_OUTPUT to specify the location of the new video file. But how do I know what the MIME type is? Right now I just assume that it's “video/mp4”, but is there a way to get the video capture activity to tell me what the type开发者_JAVA百科 is?


Well, the file type that pops up on SD cards is 3gp. Not sure about the encoding.

As best I can tell, the EXTRA_OUTPUT is a copy of the video that doesn't replace the one saved in the standard location. So if you're just worried about having the correct extension, it doesn't really matter...

0

精彩评论

暂无评论...
验证码 换一张
取 消