M4V Mimetype - video/mp4 or video/m4v?

前端 未结 3 1299
轮回少年
轮回少年 2021-01-01 09:06

I am serving a video via the HTML5 video element. I\'m finding conflicting information about the appropriate MIME type for m4v video. Most demos se

3条回答
  •  暖寄归人
    2021-01-01 09:15

    Actually that totally depends on which video container you are using. Most browsers support the webm and/or mp4 file formats. Serving a combination of these two sourcefiles ensures browsers kan view the file. There's also the .ogg format if you wish to include it.

    Not so sure about the m4v format, but it sounds like it's not one commonly used on the web. Anyway, I'd say serve m4v with a video/m4v MimeType and mp4 as a video/mp4 MimeType.

提交回复
热议问题