无法使用视频文件

Can't use video file

我正在尝试将视频导入我的网站。我不想要任何控件,我只想让它播放。我正在使用标签,但是当我从 YouTube 下载视频并尝试使用它时,它说 "Brackets only currently supports UTF-8 encoded files"。 (Brackets是我的代码编辑器)我在Notepad++中打开文件并将其转换为UTF-8无济于事。我下载了一个扩展以将其转换为 UTF-8,但也无法正常工作。这是视频:https://www.youtube.com/watch?v=LMd580H8rGY
请帮忙!

您必须将视频上传到您的服务器,然后添加到您的页面:

<video width="320" height="240" autoplay>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

更多信息:https://www.w3schools.com/html/html5_video.asp

阅读文档!

YouTube 提供名为“嵌入侧面分享”按钮的选项

<iframe width="560" height="315" src="https://www.youtube.com/embed/LMd580H8rGY?ecver=1" frameborder="0" allowfullscreen></iframe>
这是HTML代码

更改 iframe 的高度和宽度