We have a Azure website using JPlayer to play audio/video (mp3 or mp4) stored in Azure Blob storage. Some media is playing well, while some never play on Windows 7 IE 11 with below console error:
MEDIA12899: AUDIO/VIDEO: Unknown MIME type
Then we noticed the content-type of the not playing blob file is something like "application/octet-stream", after fix it to "audio/mpeg" for mp3 and "video/mp4" for mp4 the problem gone
LINK -http://stackoverflow.com/questions/10040403/set-content-type-of-media-files-stored-on-blob
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-11-07 03:32:39