【问题标题】:How to play the avi video file in a new browser using html code如何使用 html 代码在新浏览器中播放 avi 视频文件
【发布时间】:2013-10-07 09:26:14
【问题描述】:

我有视频网址,我尝试播放该视频,但没有播放,已下载。如何播放视频

<div> For help <a href="https://xxx/xxx.avi" target="_blank">Watch this video</a></div>

【问题讨论】:

    标签: java html css video avi


    【解决方案1】:

    你不能在锚标签中嵌入视频,你必须使用 html5 标签。

    <video width="320" height="240" controls>
        <source src="https://xxx/xxx.mp4" type="video/mp4">
        <source src="https://xxx/xxx.ogg" type="video/ogg">
        Your browser does not support the video tag.
    </video>
    

    您可以在http://www.w3.org/wiki/HTML/Elements/video找到更多信息

    希望对你有帮助。

    【讨论】:

    • P.S 这里是 src="movie.mp4" 但我的视频文件不在服务器中,我只有视频网址
    • @Andres Thomposon 这是第三方视频,我们无法更改格式
    • @AndrewThompson 我同意,这只是谷歌上的第一个链接。 chakri 只需将整个网址放在您的视频中xxx/xxx.avi
    猜你喜欢
    • 2017-03-22
    • 2017-05-19
    • 1970-01-01
    • 2012-12-06
    • 1970-01-01
    • 2018-10-14
    • 2012-05-25
    • 2011-10-18
    • 2020-12-25
    相关资源
    最近更新 更多