youtube

Can't create replies to some existing youtube comments

戏子无情 提交于 2019-12-24 11:34:10
问题 I have a software, which allows you to create a reply to a comment on your youtube video. Therefore I use the youtube API v3 comments.insert method. POST https://www.googleapis.com/youtube/v3/comments?part=id%2Csnippet&access_token=[access_token] { "snippet": { "parentId": "parentId", "textOriginal": "test message" } } Most of the time the requests are successful. But for some comments I can't create replies this way. The API always returns: { "error": { "errors": [ { "domain": "youtube

I dont want auto play the in UIWebview play youtube video

梦想与她 提交于 2019-12-24 11:08:58
问题 ideoView = [[UIWebView alloc] initWithFrame:CGRectMake(60, 20, 200, 184)]; videoView.delegate = self; videoView.scrollView.bounces = NO; videoView.allowsInlineMediaPlayback = YES; videoView.mediaPlaybackAllowsAirPlay = YES; videoView.mediaPlaybackRequiresUserAction = NO; [self.view addSubview:videoView]; NSString* embedHTML = [NSString stringWithFormat: @"<html><body style='margin:0px;padding:0px;'><script type='text/javascript'src='http://www.youtube.com/iframe_api'></script><script type=

Are upload playlists on Youtube API v3 purpsofully slow to be updated?

此生再无相见时 提交于 2019-12-24 10:34:49
问题 I have a line of python code in my bot: playlist_snippet = self.youtube.playlistItems().list( playlistId=playlistId, part='snippet', maxResults=50, pageToken=next_page_token ).execute() The playlistId is the id of the user upload playlist. I've noticed that this seems to be updated 10 - 50 mins after the playlist is updated on the youtube website and also the equivalent API v2 call. Is there a better API call to make? Is this purposefully untimely? p.s. for anyone interested this is my code:

How to check live stream information of a youtube channel without using Search.list from youtube data api?

天涯浪子 提交于 2019-12-24 10:24:11
问题 Basically, I want to check if several channels are streaming now without using Search.list . I used Search.list from youtube data APIenter link description here, but I found this method was really costly. As the page says, "A call to this method has a quota cost of 100 units." So it's extremely easy to reach the limit every day. I have searched for hours to find another method that can provide live stream status of a particular channel. There must be something I have missed because when I

Differences between v3 and v2 of YouTube API

让人想犯罪 __ 提交于 2019-12-24 09:59:39
问题 I'm doing some new work using the YouTube API. I know there are two versions, v2 and v3, but I can't find the differences anywhere. What are the differences? I know v3 is labeled "experimental". But: What's better about it? Other than being experimental, what's worse about it? Will v2 be phased out? For new dev work, should I use v2 or v3 回答1: Some answers (in my opinion ..) What's better about it? Search videos, channels and playlists using freebase topics https://developers.google.com

Looping code using PHP

…衆ロ難τιáo~ 提交于 2019-12-24 09:59:32
问题 I am currently using YouTube's API JSON-C response to pull data from a playlist and display the content in a list. I am doing this using PHP, however because YouTube restricts the maximum number of videos called, I have a hit a stumbling block. The maximum I can request is 50 whereas I have over 200 videos which I need to put in a list and I want to be able to do this dynamically. I understand that I will have to loop the response, which is what I have done but is there a way it can be

Youtube video statistics

久未见 提交于 2019-12-24 09:58:11
问题 Is there a way to programmatically get to the details statistics of a youtube video? For example, using this video: http://www.youtube.com/watch?v=jT7_CtjEVFU If I click on the "show video statistics" (next to the view counter), I get nice information like this (stats button underlined in red): At first I thought I could get to this through the Youtube API, but it doesn't seem to be possible. Next, I thought about parsing the data manually. However, on page load, the data isn't there as part

Youtube Javascript API: not working in IE

青春壹個敷衍的年華 提交于 2019-12-24 09:16:09
问题 I have an embedded Youtube video, and I want to capture events when the user pauses the video, skips around, etc. Following the examples at Google's documentation (http://developers.google.com/youtube/js_api_reference), I do the following: var video = (my video ID here); var params = { allowScriptAccess: "always" }; var atts = { id: "youtubeplayer" }; var x = 854; var y = 480; swfobject.embedSWF("http://www.youtube.com/v/" + video + "?enablejsapi=1&playerapiid=ytplayer&version=3", "bobina", x

Can't play a YouTube video in tvOS. Got a “Operation requires a client data source to have been registered”

☆樱花仙子☆ 提交于 2019-12-24 08:58:14
问题 When I try to play a YouTube video in tvOS I get the following error: [MediaRemote] [MRPlaybackQueueServiceClient] playbackQueueRequest AFCF4995-D293-4B5B-82F0-E701186F639F PineBoard-21384 /A600.000000x600.000000/R[0:1] responded to asset request with error Error Domain=kMRMediaRemoteFrameworkErrorDomain Code=15 "Operation requires a client data source to have been registered." UserInfo={NSLocalizedDescription=Operation requires a client data source to have been registered.} I'm using the

Are YouTube view counts incremented when using the iframe Player?

巧了我就是萌 提交于 2019-12-24 08:24:11
问题 We are embedding a youtube player into our page. Easy implementation of code and html5 support driven us to use the youtube iframe player. Problem is that view count does not work with the api. No video does not autoplay and we are playing the video with youtube's default play button. When I revert back to a AS3 player view count seems to work. Is it a bug in the iframe api? Anyone come across a solve? Thanks!!! 回答1: Views that originate as a result of clicking on one of the native player UI