我有视频网址,我尝试播放该视频,但它没有播放,它被下载了。如何播放视频
<div> For help <a href="https://xxx/xxx.avi" target="_blank">Watch this video</a></div>
最佳答案
你不能在 anchor 标签中嵌入视频,你必须使用 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 中找到更多信息
希望对您有所帮助。
关于java - 如何使用html代码在新浏览器中播放avi视频文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19112464/