android-youtube-api

App removed from Google Play because of Youtube API problems

痴心易碎 提交于 2019-12-03 12:42:26
I have developed an application for Android that displays video from my channel on YouTube using YouTube API. I show the video directly through YouTubePlayerView class. I don't use authorization of users on YouTube, just show video in player from my channel. I also use video ad in the same Activity. I show video ad before YouTube video. But I'm not sure that this is so important. Also I have another activity that show list of videos from my channel. For list item I use title of video and thumbnail. I take title and thumbnail from YouTube site using: http://img.youtube.com/vi/" + url + "

YouTubeAndroidPlayerAPI can't play some videos

淺唱寂寞╮ 提交于 2019-12-03 12:40:09
-- Update 09/05/2016 17:10 -- The problem seems related to the date of publication of the video... In the last week of April I posted many videos on YouTube, those published up to 19:00 of April 27 work properly, while those charged by 21:15 on the same day have the issue discussed, as if between 19 and 21 of April 27 had been introduced a few updates or changes to the videos by YouTube. I tried to load a new video now and this also has the same problem. I have a strange problem with YouTubeAndroidPlayerAPI.. I use YouTubePlayerSupportFragment (but I have the same problem with

Exposing Fragment in React Native Android ViewManager

六月ゝ 毕业季﹏ 提交于 2019-12-03 12:36:45
问题 I am attempting to wrap the YouTube Android API as a UI Component for React Native. I have been successful in the Android configuration of things (getting onInitializationSuccess), however I am unable to figure out how get the YouTubePlayerView back to my React Native app. According to the docs, they recommend using YouTubePlayerFragment if you can not extend YouTubeBaseActivity. Since React Native on Android does not use XML based layouts I attempted to create the views programmatically.

How do I filter videos from YouTube Data API v3 that are restricted from mobile playback without filtering out Vevo too?

有些话、适合烂在心里 提交于 2019-12-03 09:19:45
问题 I'm creating an Android app using the YouTube Data API v3. So far so good until I realized that a great many videos do not play. I get "Content from holder is blocked in your country on copyright grounds".... I googled and it seems the way to deal with this is to use the version 3 YouTube.Search.List object and to set: search.setVideoSyndicated("true"); Unfortunately this is far too restrictive. All Vevo videos and who knows what else disappear from the results even though those played fine.

YouTube video playback with ExoPlayer [closed]

时光怂恿深爱的人放手 提交于 2019-12-03 05:03:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am interested in using the ExoPlayer for YouTube video playback. I see from the ExoPlayer samples that they play YouTube videos via DASH URLs. I'm using the Android YouTube API to search for videos, and don't see a means for obtaining a DASH URL for any of the search results. Is someone aware of any samples for

How do I filter videos from YouTube Data API v3 that are restricted from mobile playback without filtering out Vevo too?

孤者浪人 提交于 2019-12-02 23:35:29
I'm creating an Android app using the YouTube Data API v3. So far so good until I realized that a great many videos do not play. I get "Content from holder is blocked in your country on copyright grounds".... I googled and it seems the way to deal with this is to use the version 3 YouTube.Search.List object and to set: search.setVideoSyndicated("true"); Unfortunately this is far too restrictive. All Vevo videos and who knows what else disappear from the results even though those played fine. I already have search.setVideoEmbeddable("true") so that is not a variable of interest in this equation

what the advantage or disadvantages if i used youtube-API or present the video in a webview

落爺英雄遲暮 提交于 2019-12-02 18:43:11
问题 In YouTube Player API when I press fullscreen it repeats the video from the beginning ,any help to solve this problem Also when I lock my phone (sleep mode) it stop playing , I want it to resume. 回答1: If you add fullscreen, orientation flags to your AndroidManifest it won't. Basically by default, it recreates the activity, hence restarts. <activity android:name="MyActivity" android:label="@string/app_name" android:configChanges="orientation|screenSize" > YouTube prohibits running videos in

Youtube Comment API: Comment Insert 403 forbidden insufficient permissions

非 Y 不嫁゛ 提交于 2019-12-02 18:01:43
问题 This is what im using to add comments to youtube : gapi.client.youtube.commentThreads.insert({ part: "snippet", commentData }).then(function (response) { console.log("response", response); }) This is what im getting while hit that : { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission: Request had insufficient authentication scopes." } ], "code": 403, "message": "Insufficient Permission: Request had insufficient authentication

YouTube video playback with ExoPlayer [closed]

喜夏-厌秋 提交于 2019-12-02 17:28:43
I am interested in using the ExoPlayer for YouTube video playback. I see from the ExoPlayer samples that they play YouTube videos via DASH URLs. I'm using the Android YouTube API to search for videos, and don't see a means for obtaining a DASH URL for any of the search results. Is someone aware of any samples for integrating the YouTube API (v3) with the ExoPlayer (without using hardcoded video urls), or know of a way to get the information I need from the YouTube API to load the video into the ExoPlayer? PeDuCKA For getting DASH URL, you need to download file: http://www.youtube.com/get_video

Embed Youtube video inside an Android app

落爺英雄遲暮 提交于 2019-12-02 14:06:57
I'm using a WebView for displaying embedded Youtube video and that works on Galaxcy S2 (OS 2.3.5) and doesn't on Nexus S (OS 2.3.4), all I get is white screen without any video display. Here is the code snippet I'm using and the declarations in Manifest file: private WebView wv; private void setWebView() { wv = (WebView) findViewById(R.id.webView); wv.setWebChromeClient(new WebChromeClient()); wv.getSettings().setPluginState(WebSettings.PluginState.ON); wv.setWebViewClient(new WebViewClient()); wv.getSettings(); wv.setBackgroundColor(0x00000000); wv.setKeepScreenOn(true); wv