youtube-data-api

Unable to play some Youtube videos using YouTube Android Player API

懵懂的女人 提交于 2019-11-27 21:13:52
问题 For example this video can't be played with Youtube player API : https://www.youtube.com/watch?v=OLK1efdt3n8 (other videos from search response works ok) I get the following messages : 09-25 17:18:50.226 24280-24280/com.mypackagename W/YouTubeAndroidPlayerAPI﹕ Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API. 09-25 17:19:05.911 24280-24280/com.mypackagename E/YoutubePlayerFragment﹕ video error : INTERNAL_ERROR YouTubePlayer API version : 1.2.1 (latest)

Youtube API Key

拈花ヽ惹草 提交于 2019-11-27 20:53:29
When I try to use YouTube API for Search, I get this error: There was a service error: 403 : The request did not specify any Android package name or signing-certificate fingerprint. Please ensure that the client is sending them or use the API Console to update your key restrictions. In the MainActivity I have this code: youtube = new YouTube.Builder(new NetHttpTransport(), JSON_FACTORY, new HttpRequestInitializer() { @Override public void initialize(HttpRequest httpRequest) throws IOException { } }).setYouTubeRequestInitializer(new YouTubeRequestInitializer(apiKey)).setApplicationName("Some

Uploading video to Youtube using Youtube Data API V3 and Google API Client PHP — getting 401 (unauthorized) message

∥☆過路亽.° 提交于 2019-11-27 19:04:19
问题 I have to implement a way to upload video from our site to youtube. I already registered the app in Google Cloud and got all the necessary client ID, client secret code, browser key, redirect uri and server key. I also did turn ON the Youtube Data API V3, Google+ API, Freebase API and YouTube Analytics API as suggessted by various sites. Here is my code below: require_once 'google-api-php-client/src/Google_Client.php'; require_once 'google-api-php-client/src/contrib/Google_YouTubeService.php'

Google OAUTH: The redirect URI in the request did not match a registered redirect URI

牧云@^-^@ 提交于 2019-11-27 18:57:15
I am trying to make an upload to YouTube from my Java based web app, I spent a few days to understand what and where is the problem and I cannot get it, for now I am pulling my hair out off my head. I registered my web app in Google Console, so I got a pair of Client ID and Secret and a possibility to download JSON type file with my config. So here is the config: { "web":{ "auth_uri":"https://accounts.google.com/o/oauth2/auth", "client_secret":"***", "token_uri":"https://accounts.google.com/o/oauth2/token", "client_email":"***", "redirect_uris":["http://localhost:8080/WEBAPP/youtube-callback

Youtube video uploads rejected before API quota limit reached

浪尽此生 提交于 2019-11-27 14:26:59
The API quota for my project was successfully increased to 4M through the application process. This is confirmed in the details for the quota via the Google Developer console quota page for the enabled API. Videos are, however, being rejected with this message after just the standard 50 uploads with this message: Task 310: Upload failed. Exception: HttpError 400 "The user has exceeded the number of videos they may upload." Here is an example of a successfully published video . Thousands of videos are waiting in the queue from an event that finished days ago. Several people from Google have

Youtube Data API v3 PlaylistItems update not working for Watch Later playlists

杀马特。学长 韩版系。学妹 提交于 2019-11-27 12:30:43
问题 Recently, the youtube.playlistItems.list doesn't fetch a playlist item that is suitable for the youtube.playlistItems.update when listing the watchLater playlist. Its works perfectly for playlist that aren't under the relatedPlaylists category of a channel. (e.g. History, favourite, likes etc.) My list response looks like this: { "items": [ { "id": "V0xWWlh5N2JrM0JSTjAtcDJVUmdjc3JRLjZCM0UwMDFFNUU3NzYzNjc=", "snippet": { "publishedAt": "2016-03-21T19:04:22.000Z", "title": "One Word - Episode

How to get the mp4 url for Youtube videos using Youtube v3 API

天涯浪子 提交于 2019-11-27 11:29:38
How do I get the full mp4 url to play the video from it's actual location in my application using some other source except Youtube. The gdata/youtube API has been deprecated so I am having trouble. Any help will be appreciated. Thanks. i made a very simple API : https://gist.github.com/el3zahaby/9e60f1ae3168c38cc0f0054c15cd6a83 As Example: YouTube Video Link: https://www.youtube.com/watch?v= YGCLs9Bt_KY now to get the Direct link you need to call the api , like this : https://script-url.com/?url=https://www.youtube.com/watch?v=YGCLs9Bt_KY returns: [ { "url": "https:\/\/r10---sn-aigllnlr

Youtube subscriber count with Youtube Data Api V3

佐手、 提交于 2019-11-27 10:18:24
问题 So previously i was getting a youtube channel subscriber count with youtube data api v2. I used the following (I am using TED channel for demo purposes) http://gdata.youtube.com/feeds/api/users/TEDtalksDirector?alt=json&callback=jQuery111202977260369807482_1433828589506&jsonp&_=1433828589507 However with the new v3 api, there is no subscriber count in the result. https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&channelId=UCAuUUnT6oDeKwE6v1NGQxug&key

Youtube api v3 Get list of user's videos

别来无恙 提交于 2019-11-27 10:08:31
With Youtube api v2, there's easy way to get videos. Just send a query like this: http://gdata.youtube.com/feeds/mobile/videos?max-results=5&alt=rss&orderby=published&author=OneDirectionVEVO The Youtube api v2 also has an interactive demo page for building query: http://gdata.youtube.com/demo/index.html With Youtube api v3, I don't know the corresponding way. Please point me the way with api v3. Thank you! The channels#list method will return a JSON with some information about the channel, including the playlist ID for the "uploads" playlist: https://www.googleapis.com/youtube/v3/channels?part

Formating the api url to return only the videoId. (And use minimal quota)

最后都变了- 提交于 2019-11-27 08:58:12
问题 So I'm using Home Assistant to launch an automation that retrieves the newest videoId that a channel has uploaded, so I can use my google home to play it(on a Roku TV), works fine, I am working on creating an automation that also does a GET request but for now, I am using the home assistant rest sensor that updates by performing a GET after a set number of seconds, for some reason though there are only 3 sensors polled every minute or so it seems they use around 100-500 quota(hitting my quota