github 页面中的嵌入视频不显示任何内容
Embed video in github pages doesn't display any thing
我正在使用 GitHub 页面,但我在嵌入视频时遇到了问题:当我点击播放时视频显示一条错误消息,在我的 html 代码下方:
<div class="row video">
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/{% "eBzTCbGnlWo" %}" frameborder="0" allow="autoplay; encrypted-media"
allowfullscreen></iframe>
</div>
请帮我解决这个问题,下面是截图:
确实 readme.md
本身不能嵌入视频,但允许 GitHub.io
页面。我有一个旧的 video example 今天还在工作,证明 GitHub 确实允许视频。
解决方案:
替换你的行:
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/{% "eBzTCbGnlWo" %}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
使用此修改版本:
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/LgWX2sPZQsE/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
我正在使用 GitHub 页面,但我在嵌入视频时遇到了问题:当我点击播放时视频显示一条错误消息,在我的 html 代码下方:
<div class="row video">
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/{% "eBzTCbGnlWo" %}" frameborder="0" allow="autoplay; encrypted-media"
allowfullscreen></iframe>
</div>
请帮我解决这个问题,下面是截图:
确实 readme.md
本身不能嵌入视频,但允许 GitHub.io
页面。我有一个旧的 video example 今天还在工作,证明 GitHub 确实允许视频。
解决方案:
替换你的行:
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/{% "eBzTCbGnlWo" %}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
使用此修改版本:
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/LgWX2sPZQsE/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>