如何在视频标签中播放 .mov 文件 [英] How to play .mov files in video tag

查看:102
本文介绍了如何在视频标签中播放 .mov 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 HTML5 浏览器中播放 .mov 视频.我已经尝试了互联网上可用的所有内容,例如

I am trying to play .mov videos in HTML5 browser. I have tried everything available over the internet e.g.

  • 属性控制"

  • attribute "controls"

使用标签

使用 src 属性,甚至将 MIME 类型更改为 mp4.

using src attribute with even changing MIME type to mp4.

但是对我没有任何作用.任何人都可以为此提出解决方案吗?

But Nothing worked for me. Can anyone suggest solution for this?

推荐答案

视频标签仅支持某些文件类型..MOV 容器使用 Quicktime 编解码器,它是 Apple 专有软件,不在 HTML 音频和视频元素支持的媒体格式.我建议将素材转码为 .MP4 并使用它.

The Video tag only supports certain filetypes. The .MOV container uses the Quicktime codec which is proprietary Apple software and is not on the list of Media formats supported by the HTML audio and video elements. I'd suggest transcoding the footage to .MP4 and using that instead.

这篇关于如何在视频标签中播放 .mov 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆