gpt4 book ai didi

php - 如何将youtube视频网址转换为嵌入代码以在我们的网站上显示视频?

转载 作者:行者123 更新时间:2023-12-03 06:32:42 27 4
gpt4 key购买 nike

我是新来的在网站上显示视频的人。我想在我们的网站上显示电影视频,但是此电影嵌入代码已被禁用,因此我无法复制嵌入视频代码。

电影视频网址-https://www.youtube.com/watch?feature=player_detailpage&v=MFjSVGsYXLs
我是usinf iframe,像

<iframe width="640" height="360" frameborder="0" src="https://www.youtube.com/watch?feature=player_detailpage&v=MFjSVGsYXLs"></iframe>

请帮助我..........

谢谢

最佳答案

很简单,如果视频所有者禁用了嵌入代码选项,那么您将无法使用嵌入代码,甚至API都无法访问。用户将只能在youtube上观看视频。

另请:http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=MFjSVGsYXLs&format=json

401未经授权的

The specified URL contains a private (non-public) resource. The consumer should provide a link directly to the resource instead of any embedding any extra information, and rely on the provider to provide access control. Source

关于php - 如何将youtube视频网址转换为嵌入代码以在我们的网站上显示视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18594877/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com