admin管理员组文章数量:1305745
I'm using the YouTube Data API to create live broadcasts on behalf of users. My application uses OAuth2 authentication, where users grant permission, and I store their access and refresh tokens to make API calls.
Before creating a new live broadcast, I verify that the user has the necessary permissions by listing their existing live broadcasts via the liveBroadcasts.list
endpoint. This works fine for most users.
However, for some users, I get the following error when attempting to insert (liveBroadcasts.insert
) a new broadcast:
{
"message": "Request is not authorized",
"domain": "youtube.liveBroadcast",
"reason": "insufficientLivePermissions",
"extendedHelp": ";
}
- Why would a user be able to list their live broadcasts but not create new ones?
- Are there additional permissions or account requirements for inserting live broadcasts?
- Could this be related to YouTube account types (e.g., brand accounts vs. personal accounts)?
- Is there a way to programmatically check whether a user has sufficient permissions before calling
liveBroadcasts.insert
?
Any insights or workarounds would be appreciated!
Things I’ve checked:
- OAuth setup: The same OAuth2 flow works fine for most users.
- Permissions scope: I'm requesting the
youtube
,youtube.readonly
, andyoutube.force-ssl
scopes. - User verification: Listing (
liveBroadcasts.list
) works, which suggests that the user is authenticated and the tokens are valid. - Consistency: The issue occurs only for
liveBroadcasts.insert
, notliveBroadcasts.list
.
本文标签:
版权声明:本文标题:youtube livestreaming api - insufficientLivePermissions when inserting live broadcast, but listing works fine - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741810160a2398745.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论