youtube视频不能使用http协议? [英] youtube video dont work with http protocol?

查看:712
本文介绍了youtube视频不能使用http协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的一个项目中,我使用编辑器插入youtube链接并嵌入视频。现在问题是iframe的src是http://youtube.com并且当这个页面加载时它不运行视频。如果我更改src =https://youtube.com它工作正常。在我使用对象标签的其他网站中,无论是否使用https协议,它都能很好地工作。有没有解决这个问题的方法?

Hi,
in one of my project i used editor to insert youtube link and embed a video. now the problem is src of the iframe is http://youtube.com....and when this page is load it do not run the video. if i change the src="https://youtube.com" it works fine. in other website where i use object tag it works well with or without https protocol. is there any solution to this issue ?

推荐答案

YouTube API团队:
YouTube API Team:

这是非常重要的是要注意,这只是为整个YouTube观看体验启用HTTPS的第一步。特别是,目前只能通过HTTPS访问YouTube播放器代码。当您在嵌入代码中使用HTTPS网址时,仍可通过标准HTTP连接访问实际视频比特流以及YouTube播放器加载的一些其他内容。另请注意,对于YouTube嵌入,HTTPS仍然是可选的;我们没有计划关闭对HTTP URL的支持。

It’s very important to note that this is just a first step in enabling HTTPS for the entire YouTube viewing experience. In particular, only the YouTube player code is accessible via HTTPS at this time. The actual video bitstream, and some additional content loaded by the YouTube player may still be accessed via standard HTTP connections when you use an HTTPS URL in your embed code. Also note that HTTPS remains optional for YouTube embeds; we have no plans to turn off support for the HTTP URLs.



请检查更多信息:对YouTube嵌入的HTML支持


这篇关于youtube视频不能使用http协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆