You can use camera.setNewGeneratedMediaFileInfoCallback to listen if there is a new media file is generated. A media file can be photos or video recordings. You can match MediaFileInfo.getIndex with MediaFile.getIndex to find out the newly generated medai file and prcoess with it, such as download.
Note: setMediaFileCallback is deprecated, please use setNewGeneratedMediaFileInfoCallback to instead.
Comments
0 comments
Please sign in to leave a comment.