MIME type cannot be underestimated

Source: Internet
Author: User
When you complete an online playback module, you may have trouble using an empty page, reading a media file in stream mode, and then assigning the page as a file name to the filename attribute of the webpage player. the result is that files in common streaming media formats can be played normally. Files in Ram, Avi, and ASF formats cannot be played. The reported error is that the files are not identifiable. only one tag is provided for viewing the details. Text/html cannot find the matching decoder. The original file header is incorrect. Therefore, some MIME types are found, specify the page contenttype according to the file type to be played, such as response. contenttype = "Video/X-msvideo". In this way, the content read in binary format is sent to the player page for normal playback.

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.