ping youtube的服务器查看频道(我自己的)当前是前端Web应用程序的直播流
我希望实现一项功能,该功能在我的网站上显示了一些“现在” div。我的网站没有后端。
我想简单地ping youtube的服务器,看看我是否正在流媒体。我需要的是真或错误。
我不明白为什么这样做如此复杂。据我了解,Google希望我将网站的每个用户登录到自己的Google帐户中,以发送此Ping请求。当他们第一次登录时,没有人会登录他们的Google帐户,这样我就可以在我的网站上显示一个小图标,说我目前正在直播。还有其他解决方案吗?
I'm looking to implement a feature that shows a little "Live now" div on my site. My site has no backend.
I wanted to simply ping YouTube's servers to see if I am streaming. A true or false is all I need.
I don't understand why this is so complicated to do. From what I understand, google would want me to have every user of my site sign into their own google account in order to send this ping request. Nobody is going to want to sign into their google account when they first login just so I can show a little icon on my site that says I am currently live streaming. Are there any other solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太确定,但是也许网站IFTTT可以处理。我记得它有很多选择。看看这一点。也许可以实现作业
链接: https://ifttt.com
祝您有美好的一天!
I'm not too sure but maybe the website ifttt could handle that. I remember it having a lot of options. Have a look into that. Maybe that does the job
Link: https://ifttt.com
Have a good day!