Android Video Player Select interface popup mechanism

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.