android-youtube-api

YouTubePlayerSupportFragment fullscreen button forces orientation change and does not enter fullscreen

坚强是说给别人听的谎言 提交于 2019-12-24 03:22:30
问题 i am creating YouTubePlayerSupportFragment . Playing in portrait mode works just fine. As soon as i click the fullscreen button of the player it forces an orientation change and recreates the activity i am in (the video stops playing and the fragment is recreated). this is how i create the fragment: fragment = (YouTubePlayerSupportFragment) getSupportFragmentManager().findFragmentById(R.id.youtube_fragment); fragment.initialize(Config.YOUTUBE_API_KEY, this); The only similar thing on

getting error “There was a issue with network [400]” while playing You tube video

回眸只為那壹抹淺笑 提交于 2019-12-24 02:47:06
问题 I am playing you Tube video using Android You tube API. Some of the URL are working fine but in some URL i found error message on screen saying "There was a problem with network [400] Tap to retry". Internet is connected.Please help me out. Thanks in advance. 回答1: This link, Your solution. I think Give ONLY the YouTube ID and not the entire YouTube URL to the loadVideo() function. UPDATE: if you want jump to a specific time in the video. The API provides two methods to jump playback: –

Youtube API v3 always return error 403 (accessNotConfigured)

六眼飞鱼酱① 提交于 2019-12-23 16:07:57
问题 I have read a lot of answers to fix this error, like using browser key instead of android key but none of them work. I have turned on YouTube Data API v3 on my developer console and i already generated an API Key for android. This is the example URL : https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PLAYLISTID&fields=items&key=ANDROID_API_KEY It returns this error : { error: { errors: [ { domain: "usageLimits", reason: "accessNotConfigured", message: "Access Not

How to enable cardboard mode in Youtube Android Player API?

倾然丶 夕夏残阳落幕 提交于 2019-12-23 16:07:43
问题 I want to enable viewing 360-degree videos from Youtube inside my app in the cardboard mode which splits the video into two halves for the two lenses in a Google cardboard, like in the Youtube app. I'm using Youtube's Player API for Android to show youtube video's in my app but I don't see any option to enable cardboard mode in the YouTubePlayer interface docs. Please advice how can this be done. Thanks 来源: https://stackoverflow.com/questions/42840077/how-to-enable-cardboard-mode-in-youtube

What to do after getting Auth Token - Android Youtube API

梦想的初衷 提交于 2019-12-23 04:24:52
问题 I am creating an android app, using the youtube API where you play and then favorite YouTubeVideos.I have (I think correctly) gotten the Auth Token using Account Manager and oauth2 for the user. What I am wondering, is where to go next? I would like to create an instance of a YouTube, so that I can favorite the videos. After looking at the constructor, I do not know how to incorporate the access token into it. I have my Client_ID and Client_Secret, but all the examples I have seen have just

Unable to play youtube video in my android app

房东的猫 提交于 2019-12-23 04:04:10
问题 Hello Everyone, I'm trying to play youtube video in my android app by integrating youtube sdk and generation of api key from google console after doing that when I tried to run my application while running the app I'm getting this error in my console can any one help me in fixing of this issue. 11-19 19:41:53.264 1173-1173/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver lwz@427e4cf0 that was originally registered here. Are you

Unable to play youtube video in my android app

◇◆丶佛笑我妖孽 提交于 2019-12-23 04:03:17
问题 Hello Everyone, I'm trying to play youtube video in my android app by integrating youtube sdk and generation of api key from google console after doing that when I tried to run my application while running the app I'm getting this error in my console can any one help me in fixing of this issue. 11-19 19:41:53.264 1173-1173/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver lwz@427e4cf0 that was originally registered here. Are you

ViewPager and YouTubePlayer

≯℡__Kan透↙ 提交于 2019-12-23 01:13:59
问题 In my actvity I have a viewPager with for example 3 pages. In all of theses pages, I have a YouTubePlayer with a different id video. The problem is that all the YouTubePlayer component has the same video at the same time. Concretely : When the first page is displayed, the YouTubePlayer show the first video, so all seems to be ok. When I try to scroll to the 2nd page, I can see that the 2nd YouTubePlayer show the same video. When the 2nd page is completely displayed (After scrolling), behind

Getting a lot of crashes from android youtube player api

可紊 提交于 2019-12-22 10:36:42
问题 I am using version 1.2.1 (tried with latest version 1.2.2) of android's youtube player api . It works fine on most of the devices. However now and then, I keep on getting crashes on crashlytics. I am getting the following crashes Fatal Exception: java.lang.IllegalStateException: android.os.TransactionTooLargeException at com.google.android.youtube.api.jar.client.RemoteEmbeddedPlayer.x(SourceFile:558) at bpd.w(SourceFile:576) at tef.onTransact(SourceFile:390) at android.os.Binder.transact

Android YouTube API “An error occurred while initializing YouTube player”

坚强是说给别人听的谎言 提交于 2019-12-21 05:51:10
问题 I have a Fragment containing a YouTubePlayerSupportFragment. This fragment is inside a ViewPager. The player works fine on my Galaxy S3 Android phone (4.3 / API 18) and on my VM (4.3 / API 18). But on every other phones i've tried, the player shows a An error occurred while initializing YouTube player message and throw a onInitializationFailure with an UNKNOWN_ERROR reason. I've checked the LogCat and there is absolutly no other error/warning, from my app or from youtube. It didnt work on the