我有一個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