How to get mime type and extension of taken videos and pictures?
waterdrake opened this issue · 2 comments
waterdrake commented
Is there a way to get the the mime type and extension of a taken video? I can get the file but it does not seem to have an extension or mime type:
@Override
public void onVideoTaken(@NonNull VideoResult result) {
File file = result.getFile();
}
Also, on that note, is there a way to get the mime type and extension of a taken picture?
@Override
public void onPictureTaken(PictureResult result) {
}
EzequielAdrianM commented
When you configure the camera settings, you can tell the Camera API what resolution, format, and compression to use, so you should already know it.
waterdrake commented
@EzequielAdrianM Can you point me to where I can learn about how to configure those camera settings you mentioned?