Identify restrictions in embeddable Youtube videos - iframe

I'm having problems identifying playback restrictions of embedded YouTube videos when using YouTube Data API v3.
Example: YouTube ID k85mRPqvMbE and 3n4dXiagrZc seem to share same restrictions when it comes to embedded playback (in my case on an iPhone). The parameters I have looked at are "embeddable" in Video API and videoSyndicated/videoEmbeddable in Search API.
All the "obvious" parameters give the same results for both videos, but while I can play "3n4dXiagrZc" on my device without any problems, "k85mRPqvMbE" refuses to play due to content owner blocking me from watching it (playback through YouTube app or YouTube web works fine though). Please note that I have check the country restrictions as well and my country is not blocked for any of the two.
Any ideas on how to identify videos via the YouTube Data API v3 that are blocked for the reason stated above?

If you do a JSON query, http://gdata.youtube.com/feeds/api/videos?v=2&alt=jsonc&q=videoid you will get the video info. Here look for "embed:allowed", if present the video is embeddable.. Hope this helps! :)

Related

Alternative to storing video files in cloud service

I'm building a video streaming platform for a niched audience. It's basically YouTube with a fence around it. Users are vetted based on quite strict criteria so content will be high quality and relevant. I've been using Firebase to store the videos, but I soon realized this will become very costly in the end and since it's gonna be free and monetized through ads (not video ads), I will probably never see an upside. So I had an idea of using YouTube's API to basically upload videos to one account and stream them through unlisted links directly onto my platform.
There are a few issues with this however: first off, I'm not sure if this goes against YouTube's policies or rules. I've been trying to contact them, but it's virtually impossible to get ahold of them. Does anyone know?
Secondly, there are irrelevant, disrupting video ads that I cannot remove and links to other videos, taking the user from the platform.
So, are there other options? Any experts on Vimeo or Dailymotion for example?
Even YouTube is struggling with the storage/money issue, so I realize this might be an impossible question - I'm prepared to be disappointed.

How to track source traffic from utm to Youtube video page?

UPD. I realised that I need to rephrase the question. So does anybody know how to track Youtube video views that come from a specific QR code? There may be different QR codes for the same video.
My ideas:
According to stackoverflow utm parameters don't work for youtube links. Theoretically I can create a page on my website that redirects to Youtube video page and put its link into QR code. Google Analytics will show stats for this page. But I can't track how long users watched the video because Youtube analytics shows breakdown of External traffic up to domain only and not for exact links. So not ideal and quite complicated with redirects.
Any other ideas? Thanks!
------
Hi.
We need to create a QR code for a paper leaflet with the link leading to Youtube video page. We are going to add utm source parameter to the link to see how many people will use this QR code.
My question is where I can see the stats on non-standard traffic sources for this Youtube video page? I don't see this option in Youtube itself and I've read that if I link Google analytics to my Youtube channel, it will show data for the channel page only and not for individual video pages. Is it true? How can I see the breakdown of 'Ex­tern­al' source in Youtube video page stats to see exact destinations the traffic comes from?
I'm in the process of setting up Google analytics for my channel and it doesn't work (it's a separate question) so I want to understand if it can help me with my problem at all.
Thank you!
UTM parameters will only work to show you data coming to your website. Also, setting up Google Analytics for your channel will only make sense if the channel videos are embedded in a website, otherwise, you just need to use YouTube Analytics.

Panoramio - Will I be able to use 'get_panoramas.php' after November 4th 2016?

I saw the deprecation message and the blog post by Google and I'm completely stumped on what will continue to work and what not.
I don't upload images to my account. I understand that this service will no longer be available.
What I do use, is this api: http://www.panoramio.com/map/get_panoramas.php, for showing images near locations on my website.
Will I be able to keep using it?
If so, until when? And shouldn't that be clearly stated?
If not, is there a parallel Google Maps api to get such images? I'm aware of Google Locations api, but I'm more interested in nearby outdoors images, and not places of business and named land marks.
Thank you.
UPDATE: as stated in the comment, the service is indeed down. The image urls we already have are still operational for another year, but we can't search for other existing images anymore. So we made the transition to Flickr. It was very easy and it works great.
It is stated in the link that you provide that after November 4, 2016, you’ll continue to have access to your photos in Panoramio for a year, but take note that you will no longer be able to add new photos, likes, or comments.
I suggest you to check this Google Static Maps API, it lets you embed a Google Maps image on your web page without requiring JavaScript or any dynamic page loading. The Google Static Maps API service creates your map based on URL parameters sent through a standard HTTP request and returns the map as an image you can display on your web page.

is it possible to replace Youtube's Iframe Video Ads

is it possible to replace Youtube's embedded Video's Ads with my own video ads.
maybe using a video player to do that but how can i do?
for example. someone is embedding youtube videos somewhere else. he wants to show some video ads on those videos. how can he do that?
I doubt it is impossible. It is, however, illegal to do so. When using the YouTube Data API or the JS API you agree to their terms of service, which explicitly state that you may not alter or remove in-player ads of embedded videos (section II, paragraph 7).
Is it possible to replace Youtube's embedded Video's ads with my own video ads?
If you own the video the answer is YES, but if it's own by someone, the answer is NO. Only the owner/author of the video have rights to the ads of these video.
For more information, you can check this related SO question. It might give you an idea about your problem.
Also from the YouTube Help, it is stated here that:
You will automatically be opted into showing ads on embedded videos if
you've associated your YouTube and AdSense accounts and have enabled
your videos for embedding. Note that embedded videos will honor the
same ad enablement settings as videos on youtube.com.
If you don't want to show ads on your embedded videos, there is no way
to directly disable ads on just embedded videos, however, you may
disable your videos for embedding altogether.

Detecting Youtube video length with Asp.net

Is there any ASP.Net command that can detect how long youtube videos are automatically? On my website people can add youtube videos to the database but I don't wanna have to manually find out the length of every youtube video people add.
You might take a lil' look at the YouTube API. I haven't tried it, but I searched Google for 'YouTube API'.
http://code.google.com/apis/youtube/overview.html

Resources