ping youtube的服务器查看频道(我自己的)当前是前端Web应用程序的直播流

发布于 2025-02-13 05:18:02 字数 239 浏览 1 评论 0原文

我希望实现一项功能,该功能在我的网站上显示了一些“现在” 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请你别敷衍 2025-02-20 05:18:02

我不太确定,但是也许网站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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文