1, File Manager different mechanisms for recognizing video with videos
a) file manager simple according to suffix recognition, 3gp , mp4 and avi is considered to be three different video formats respectively, so the video player selection interface will be ejected separately. Span lang= "en-US" style= "font-family:verdana,helvetica,sans-serif!important" >
b) VideosThe video recognition is in accordance with the filemimetypeTo set,3gpbelongs to the simplifiedmp4, which can be considered the same type of file. InAndroidIn the design3gpAndmp4Files using the sameParser, the two types of filesmimetypeIt's the same.Video/mp4。 BecauseAndroid DefaultWill3gpAndmp4Use the samemimetype, when the user is playing3gpis the choice ofAlways ,Play againmp4The video player selection screen will not pop up.
2,In an earlier version of the humble division once supported3gpAndmp4The distinction,3gpThere are custommimetype, but this change will result in some third-party applications not being able to identify and use3gpDocuments, such as the more popular foreignInstagramThere will be no way to shareCameraRecording of3gpFile. Finally, the applicability-based considerations3gp's approach has returned toAndroid DefaultThe practice
3, the recommendation is to maintain the Android default design. The reference machine is the same behavior. No matter how to modify the behavior, there will be side effect.
a) solution1 : Modify videos app behavior, instead of checking mimetype , and check the suffix. Because the suffix is unreliable, such as .3gp is not necessarily the real Span lang= "en-US" style= "font-family:verdana,helvetica,sans-serif!important" >.3gp , so there is actually a problem.
b) Solution2: modifies the behavior of the underlying scan. The previous note mentions that the behavior will be different from Android default , which can cause problems with other apps .
Android Video Player Select interface popup mechanism