How to embed and play private videos using YouTube-API-V3

穿精又带淫゛_ 提交于 2019-12-12 04:04:23

问题


I have an application which uploads videos on YouTube with privacy status as private, but when I try to play them using iFrame (YouTube Player), it states the video is private. When I sign in to YouTube in another tab then it's playing.

Is there any way to play private videos while the authorization/sign in will be handled in the backend using YouTube-API?


回答1:


Here is a related SO post.

You need to an OAuth to your account for that. You have the capacity to do this without authenticating all the time. YouTube Data API: OAuth Authentication for services using V3 without user intervention.



来源:https://stackoverflow.com/questions/45757880/how-to-embed-and-play-private-videos-using-youtube-api-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!