我有一个div容器和iframe里面。我分配宽度= 200和高度= 200。 当我点击全屏时,视频变得模糊,质量很差。所以,我想看看是否可以禁用YouTube上的全屏iframe。如何禁用YouTube上的全屏iframe?
0
A
回答
0
我使用?controls = 0在我的网址的末尾,它解决了问题。
1
使用iframe标记,而不将allowFullScreen禁用播放机上的按钮,例如:
<iframe src="https://www.youtube.com/embed/12345"></iframe>
要允许全屏只需添加的allowFullScreen:
<iframe allowfullscreen="0" src="https://www.youtube.com/embed/@(item.VideoUrl)"></iframe>
0
"I used ?controls=0 at the end of my url and it resolved the issue."
Your answer doesn't solve the problem, you can toggle full screen also double clicking the video.
I tried allowfullscreen="0", doesn't work too.
PS
The same is for ?showinfo=0. Also doesn't work.
?showinfo=0 works only if you change link:
https://www.youtube.com/embed/Di2KMatiGAM?controls=0&showinfo=0
to:`enter code here`
https://www.youtube-nocookie.com/embed/Di2KMatiGAM?controls=0&showinfo=0
0
当你有一个视频在youtube上,你可以分享它。它也显示一个选项来嵌入它。
你可能有一个<iframe></iframe>
在你的代码
矿看起来像这样:
<div class="IFR" alt="-">
<iframe width="560" height="315" src="https://www.youtube.com/embed/AdfFnTt2UT0 rel=0&controls=1&showinfo=0" frameborder="0" allow="autoplay; encrypted-media" donotallowfullscreen>
<p>
Your browser does not support Iframes <br>
I suggest that you use Google Chrome or FireFox
</p>
</iframe>
</div>
的事项这里是 “donotallowfullscreen” 的东西。 如果您将其设置为“allowfullscreen”,您将能够使用全屏。
TLDR:在您的YT视频所在的Iframe标签中,在末尾添加“donotallowfullscreen”。和其固定的
相关问题
- 1. 播放YouTube的iframe全屏
- 2. Youtube iframe API - Android全屏
- 3. YouTube iframe API禁用跳过
- 4. 如何关闭全屏iframe?
- 5. 如何使用YouTube的iframe
- 6. 全屏iframe
- 7. 与YouTube的iFrame(在全屏模式下)的z-index问题
- 8. 通过Youtube Iframe滚动禁用
- 9. 是否有可能在android中禁用全屏youtube api?
- 10. 禁用自动全屏iPhone上
- 11. iframe不会全屏
- 12. “全屏” <iframe>
- 13. Featherlight iFrame如何允许全屏显示?
- 14. HTTPS网站上的Youtube Iframe
- 15. prettyphoto youtube全屏不工作
- 16. 全屏播放youtube视频?
- 17. iPad MPMoviePlayerController - 禁用全屏
- 18. 如何在WP页面上显示全屏iframe?
- 19. 启用在YouTube上的iframe视频
- 20. 灯箱和iframe全屏
- 21. IFrame扩展为全屏
- 22. 在ipad上禁用vimeo上的全屏选项
- 23. 禁用HTML5的播放/暂停/全屏对于YouTube点击<video>
- 24. 如何在html iframe中使用YouTube Api?
- 25. 如何禁用HTML5全屏iPhone应用程序中的弹跳?
- 26. 如何禁用的YouTube API V3评论
- 27. 使用Youtube Iframe API
- 28. 使用YouTube的iframe API,如何显示全屏幕控制隐藏音量控制
- 29. 如何禁用了解更多在youtube中嵌入iframe的锚标签
- 30. Youtube IFrame Player API - 禁用Youtube自动恢复视频,我离开的地方
除了防止iframe上的全屏,您可以禁用YouTube视频播放器内的全屏图标。为此,请添加参数'fs = 0':'https://www.youtube.com/embed/12345?fs = 0' – ecoe