问题
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