YouTube Video Embed iFrame Failing On Membership Videos - youtube

I've posted on YouTubes community page and I've heard nothing back from them so I'm going to see if someone here can help me figure this out.
A few days ago the embedded videos on my website just stopped working: https://enlighten-university.com/course.html.php?active=3
At first, I thought it was maybe a problem with my iFrames or an API on the website but when I visited YouTube I discovered the same problem on their website:
So I figured maybe YouTube itself was down but when I checked my other videos, videos that are not a part of my membership program, the embed function seems to work fine.
So then I hit f12 and there I've discovered the problem. The YouTube embed function relies on a header, a Google header, that lets the server know that the person trying to watch the video is in fact a member. Their Google account has to follow them, but for some reason, that header is no longer working.

Related

Youtube API only showing old videos

Since yesterday, one of the websites I manage that uses the Youtube API to list videos is only showing videos from ten years before... it should be showing the latest ones. The channel and API key are correct, and I cannot find the source of the problem. Has anyone else run into this?
I presume that it might be related to issue #128673552, https://issuetracker.google.com/issues/128673552.

All data except for fileName disappears from fileDetails in a couple of days after uploading the video

I'm using YouTube Data API (v3) to access my own video info.
Everything worked fine, I could get fileDetails.fileSize, fileDetails.videoStreams[] etc. as I expected.
However, in a couple of days after I uploaded the video, the same API returns only fileDetails.fileName and no other info anymore.
Now returned json looks like this:
"fileDetails": {
"fileName": "test movie.mp4"
}
Here is my request URL:
https://www.googleapis.com/youtube/v3/videos?part=fileDetails&id=__my_video_id__
The video is owned by my account with which I did OAuth and got an access token.
I tried the URL on OAuth 2.0 Playground (https://developers.google.com/oauthplayground/), but I got the same result though once it returned all data when I tried it on the day I uploaded the video.
I wonder it might be related to the video visibility since I set it to unlisted so that others won't find my test video by searching.
Any info is welcome!
Edited:
The video itself doesn't have any problem. I can play it on YouTube and via YouTube iframe API also.
I'm aware that YouTube has a system which automatically detects copyright infringements, however, this issue seems to happen randomly even when we don't violate any copyright of others. (happens with our original videos too)
We finally decided to cache fileDetail on our backend.

how to play youtube videos in half and full screen (iOS 6,7)

I have already posted two questions
Question 1 Question 2
last week, but no answer worked. I am working on an app(I have completed the UI),
I have to show the youtube videos in the app, just like the youtube app. that is to show youtube videos in the full mode and in half screen too.
Some Body told me to use MPMoviePlayerViewController , but the problem with this player is, that it takes the url of videos like "www.xyz.com/videos.mov". It doesn't play youtube videos. I went to Youtube Developer site. There is lot of information, but all that is for some scripting(javascript using iframe) language, that I don't understand.
Its been a week, and am stuck with this youtube API(I tried to read each and every thing on youtube developer blog, but most of the stuff is related to javascript, which I don't know).
There are few codes available over stackoverflow and Github, which are very old, and are not working now.
If any body know anything then please help. Thanks in advance
I've managed to play YouTube videos with MPMoviePlayerController using LBYouTubeView Library.
Which is a good and upto date library. Basically it extract "www.xyz.com/videos.mov" kind of URL from YouTube and plays in a MPMoviePlayerController. You can also set the quality of the video (low,medium,high) etc. This library comes with a sample project you can test.

Embedded youtube Playlists do not work on iPad (iOS)

I am embedding a Youtube playlist and it works fine on normal desktop browsers, but on iPad it is not working. From the various questions here and some other info I read that Youtube is capable of detecting the client and serve an HTML5 version of the video instead. However, it seems that it works only for a single video URL. When I am using a playlist URL instead it does not work. I am using the <frame> embedding approach.
Is there any way to go around this? I can't seem to find any settings on the Youtube playlist to make it 'html5 friendly'.
There few bugs on YT iFrame player on iOS. Hopefully, they are all going to be resolved soon. You can track them all in issue tracker. Here's the main one.
https://code.google.com/p/gdata-issues/issues/detail?id=5204&q=API%3DYouTube%20iOS&colspec=API%20ID%20Type%20Status%20Priority%20Stars%20Summary
I couldn't add a comment so had to add an answer.
It appears they have fixed the issue at their end, see latest updates here:
https://productforums.google.com/forum/#!msg/youtube/_crm-T7BFvM/_V2xDBrV0HcJ

How do I determine where my YouTube video has been embedded?

Using YouTube Analytics, I have been able to determine that one of our competitors is embedding our videos, apparently passing them off as their own (as recently as Sunday).
I have been trying to discover what specific page the videos are embedded on, not just the domain. Apparently this was a capability of Insight, but I haven't been able to find any recent info that shows how to do this using YT Analytics. I suspect this data in no longer available.
I've been all over their site, and tried some obvious unlinked page guesses (/videos, /youtube, etc) and haven't found them.
Is there a way with the current YouTube system to find the specific URL where my videos are embedded?

Resources