“用户不能用于实况流传输”错误 [英] "The user is not enabled for live streaming" Error

查看:176
本文介绍了“用户不能用于实况流传输”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力解决这个问题。基本上,我只是试图连接到我的YouTube频道,并从基于PHP的应用程序中获取未来和过去的直播节目。我能够在api控制台上创建一个服务帐户,它现在似乎工作正常(因为我以前有过一些oauth认证错误),但现在,我在错误日志中收到此错误:

 未捕获异常'Google_Service_Exception',并显示消息'Error calling GET 
https://www.googleapis.com/youtube/v3/liveBroadcasts ?part = id%2Csnippet& mine = true:
(403)用户没有启用流媒体直播。'等等...

我的youtube帐户与我的个人@ gmail.com帐户相关联。我假设,不知何故,我必须将@ developer.gserviceaccount.com添加到我的YouTube频道,但即使我试图找到任何指示,但我无法找到。我在我的个人Gmail账户上启用了流式传输功能,并且还有一些测试活动。



请在此事表示感谢和帮助。谢谢!

解决方案

不知道这是否有帮助,但在我的情况下,原来这个帐户有2个帐户:


  • 一个包含奇怪page-id@pages.plusgoogle.com和

  • a的页面正常的Google电子邮件帐户user@gmail.com)。



最重要的是,我遇到了不更新访问令牌的问题:例如发送一个旧的访问令牌。



确保您尝试2个子帐户;一个必须有它下面的视频。如果你选错了,那么你会得到上面的错误。

I've been struggling quite a bit to solve the this issue. Basically, I'm just trying to connect to my youtube channel and get a list of future and past live broadcasts from my PHP based application. I was able to create a service account on the api console and it seems to be working fine now (as I've had some oauth authentication errors before) but now, I'm receiving this error in my error log:

Uncaught exception 'Google_Service_Exception' with message 'Error calling GET
https://www.googleapis.com/youtube/v3/liveBroadcasts?part=id%2Csnippet&mine=true:
(403) The user is not enabled for live streaming.' in etc...

My youtube account is associated with my personal @gmail.com account. I'm assuming that somehow I have to add the @developer.gserviceaccount.com to my youtube channel but even though I've tried to find any instructions for this, I was not able to find. I have live streaming enabled on my personal gmail account and also have some test events there.

Would appreciate and help in this matter please. Thanks!

解决方案

Not sure if this will help, but in my case it turned out to be that the account somehow had 2 accounts:

  • a page with a strange page-id@pages.plusgoogle.com and
  • a normal Google email account user@gmail.com).

On top of that, I had issues with not renewing the access token: e.g sending an old access token.

Make sure you try the 2 sub accounts; one must have the videos under it. If you choose the wrong one, then you get that error above.

这篇关于“用户不能用于实况流传输”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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