IE10 not playing a video when using the <video> tag, but plays it when requesting the video directly

后端 未结 7 1091
太阳男子
太阳男子 2020-12-10 22:01

I have a webpage with a tag on it with the following markup:

相关标签:
7条回答
  • 2020-12-10 22:39

    Now it is very easy to update mime type for your videos on amazon s3,

    Just login and navigate to your file, under preferences you will see metadata, there you can edit content-type

    Save it and reload your page.

    0 讨论(0)
  • 2020-12-10 22:40

    I would check whether the mime-type is correctly being returned for the file.

    Chrome will play correctly regardless of the MIME Type returned.

    To check:

    1. Press F12 to display the IE Tools Window/Pane.
    2. Go to the Network Tab
    3. Click Start Capturing
    4. Browse to the page in question
    5. Find the mp4 line
    6. If the Type is displayed as application/octect-stream then this is your issue.
    0 讨论(0)
  • 2020-12-10 22:46

    If it directly plays find when you put the .mp4 URL into the browser make sure it's not running with the Quicktime plugin which you may have installed (especially if you use iTunes). Right click on the successfully playing video to rule that out. If it comes up with menu items related to Quicktime you may want to disable Quicktime plugin in adins and continue troubleshooting.

    Sample MP4 video: http://www.w3schools.com/html/mov_bbb.mp4

    0 讨论(0)
  • 2020-12-10 22:47

    Make sure you set the web server to use MIME type video/mp4 for .mp4. I accidentally set .mp4 to use MIME type video/mpeg, the video plays in Chrome, but not in IE11.

    0 讨论(0)
  • 2020-12-10 22:50

    I had this same issue which was a real pain in the ass. My solution was actually quite simple (after searching on the internet for about 4 hours).

    Add this line (specific for IE) to your .htaccess file.

    AddType video/mp4 .mp4 .m4v

    0 讨论(0)
  • 2020-12-10 22:53

    I had the same issue with IE 11 and the problem was the content type was application/octect-stream as stated by csmith. I was serving my videos from Azure storage and apparently that is the default content type.

    You can change the type with Azure storage or using Azure api as shown in the post

    Set Content-type of media files stored on Blob

    Here is a guide for people on Amazon cloud (I did not test it)

    Changing content type for Amazon

    0 讨论(0)
提交回复
热议问题