android-youtube-api

Embed config is not supported in RemoteEmbeddedPlayer

╄→гoц情女王★ 提交于 2019-12-11 02:47:51
问题 When I try to play a youtube video on android using the youtube official api I get this error in logcat E/YouTubeAndroidPlayerAPI: Embed config is not supported in RemoteEmbeddedPlayer. and then the onError callback is triggered with NOT_PLAYABLE reason. Is it something configured incorectly for the video? This is the video: https://www.youtube.com/watch?v=sw6Mg81YMg0 回答1: had same problem when I created my project for Android TV as the target device, then I create a new project for phone and

Use youtube android player API to set video playback quality

寵の児 提交于 2019-12-10 14:16:31
问题 I'm use Youtube android player API to play videos on my android application(We are using android ICS version). I wanted to set/control the playback quality(i.e 230p,320p,420p or 720p) using the android player API, but on the Guide there is no such method to set playback quality. Yes such method exist in Javascript API or iFrame API but not in Android player API. If such playback option are not available is there anyway to control HD and non-HD via API 来源: https://stackoverflow.com/questions

How to retain instance of fragment of fragment playing video after change in orientation?

那年仲夏 提交于 2019-12-10 13:43:46
问题 I have a YouTube API fragment that is statically added in my xml manifest file, i.e. a fragment that has a youtube player inside of it. I do not have a file that extends fragment in my project. In my activity class I put this line of code in the onCreate of my activity class: youTubePlayerFragment.setRetainInstance(true); It does not have any affect: when I rotate the screen I get a blank black screen of the fragment. How can I get it to continue playing the fragment after the orientation

Youtube player crashes with giving java.lang.IllegalStateException: android.os.DeadObjectException in Android

女生的网名这么多〃 提交于 2019-12-10 11:14:07
问题 I am working on a project. I am using YouTubeAndroidPlayerAPI and Webview in my activity. when I try to run a video with its id, it runs. Problem is but if the video id is null, then I am not running or initializing the video as explained in the code, then It gives me the following logcat output and my application gets crash with giving the message as "Unfortunately You tube has stopped" . Can anyone help me as I had done lot of searches but couldn't find any solution. My Activity extends

Video pausing with error “Unauthorized overlay”

我怕爱的太早我们不能终老 提交于 2019-12-10 09:20:25
问题 I am getting following error while playing video in fullscreen mode (only in fullscreen). I am hiding all other components in the layout when it goes fullscreen but it says that android:id/statusBarBackground is the view that is causing the problem. How do I control that? YouTube video playback stopped due to unauthorized overlay on top of player. The YouTubePlayerView is obscured by android.view.View{16771a9d V.ED.... ........ 0,0-1920,75 #102002f android:id/statusBarBackground}. The view is

Continue playback of YouTube player while rotating device with separate orientation layouts

谁说我不能喝 提交于 2019-12-10 03:54:23
问题 I am trying to add a View containing a YouTube Player to an Activity that keeps on playing when I rotate the device. Since the UI contains more than just the video, I am using a YouTubePlayerFragment . When the orientation changes from portrait to landscape, the system should use a different layout file. This layout also includes the YouTube player as a view which does not take up the whole screen. Below you will find the bare minimum code to reproduce the problem (for a fresh Android app,

Black patch youtube android api

别等时光非礼了梦想. 提交于 2019-12-09 13:58:19
问题 I have implemented youtube player api for android, when I put youtube player inside the scrollview and start the video, the moment I pause the video and scroll the screen up and down it has black patch with it. I could not get why the black patch is coming over?I tried to capture the screen but the screenshot does not have the black patch. Below is my code : <com.google.android.youtube.player.YouTubePlayerView android:id="@+id/youtube_view" android:layout_width="wrap_content" android:layout

Access Not Configured Android Google API Key

℡╲_俬逩灬. 提交于 2019-12-09 08:59:07
问题 I am trying to use Youtube Data API v3 to search on android, though when I try to search using my API key i always get this message: { "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } ], "code": 403, "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } } I have the Youtube Data API set to

YouTube Android API: YouTubePlayerFragment loading spinner

南笙酒味 提交于 2019-12-09 04:44:31
问题 I am using the Android YouTube API samples to create a chromeless YouTube player in my app. I am having an issue that the buffering / loading progress bar carries on displaying over my video even after it has loaded and started playing. I can reproduce this in the FragmentDemoActivity sample with a couple of small modifications: public class FragmentDemoActivity extends AppCompatActivity implements YouTubePlayer.OnInitializedListener { @Override public void onCreate(Bundle savedInstanceState)

Video Quality on YouTube Android Player API

时光怂恿深爱的人放手 提交于 2019-12-09 03:38:35
问题 I am trying to develop an app using Android's YouTube API. I want to manually modify the video quality but I was not able to find any relevant API, any help is appreciated. https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/package-summary Thanks, Ankur 回答1: There is not a method to modify the quality right now, it uses the default settings. Feel free to follow revision history if it comes along in the future 'https://developers.google.com/youtube