android-youtube-api

Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver

﹥>﹥吖頭↗ 提交于 2019-12-11 16:31:13
问题 I'm a newbie Android "programmer" and I've tried to find the answer to this error without luck. There are some half answers but nothing that suggest what to do more exactly in my unique situation. This error comes when closing a YoutubePlayer activity. It seems I should unregister a receiver, possibly in onPause( )...but how do I do that and maybe more important, which receiver should be unregistered? Here is my logcat: 06-06 02:17:31.781 26887-26887/? E/ActivityThread: Service com.google

YouTube API does not play videos as expected

ⅰ亾dé卋堺 提交于 2019-12-11 11:38:37
问题 I'm attempting to build a very simple video player using the Youtube API for Android. So far I have one video (which can be clicked and played) and two thumbnails below it - my problem is: I need to figure out how I can (correctly) assign different videos to each thumbnail - then play them. I've attempted assign the thumbnails so using: public static final String VIDEO1_ID = "HNtBphqE_LA"; public static final String VIDEO2_ID = "YWteQj_q3Ro"; public static final String VIDEO3_ID = "Ak-

How to get Youtube GData Playlist JSON response

孤人 提交于 2019-12-11 09:57:06
问题 I have to parse this youtube playlist into my app using gdata: https://www.youtube.com/playlist?list=PLWz5rJ2EKKc9ofd2f-_-xmUi07wIGZa1c So I think, I should need to use below link to get JSON response: http://gdata.youtube.com/feeds/api/playlists/PLWz5rJ2EKKc9ofd2f-_-xmUi07wIGZa1c?v=2&alt=jsonc But whenever i am opening it on browser, every time getting: {"apiVersion":"2.1","error":{"code":410,"message":"No longer available","errors":[{"domain":"GData","code":"NoLongerAvailableException",

How can I get a list of videos available from a particular YouTube channel?

…衆ロ難τιáo~ 提交于 2019-12-11 09:56:52
问题 How can I get a list of videos available from a particular YouTube channel, using the API? 回答1: Basically every youtube channels has three section: Uploads, Playlist, Liked Videos. Had done some work with the playlist of a channels. Used youtube api version 3.Sharing my code: First get the Playlists from a channel: private void getPlayList() { YouTube.Playlists.List playLists; try { playLists = youtube.playlists().list("id,status,snippet");//youtube is the Youtube object, already initialised

Android YouTube player - how do I get the list of videos in a channel and choose one to play?

一笑奈何 提交于 2019-12-11 07:45:36
问题 I am looking at the sample applications download for YouTube API from here: https://developers.google.com/youtube/android/player/downloads/ But there does not seem to be an example of how to display the videos of a channel and choose one to be displayed. EDIT: I entered this url into my browser: https://www.googleapis.com/youtube/v3/search?key=my_real_key&channelId=UCoLEarNS6E-Kbzoya_p7k2Q&part=snippet,id&order=date&maxResults=20 But I got this error: { "error": { "errors": [ { "domain":

YoutubePlayerFragment showing device not supported?

情到浓时终转凉″ 提交于 2019-12-11 07:13:26
问题 I had integrated YoutubePlayerFragment in my application to show youtube videos. However from 21st april I get error on saying device is not supported. Please visit youtube.com/devicesupport Any one facing same issue? How can i resolve this? 回答1: From Official website Certain older YouTube apps will no longer be supported after April 2015 As we upgrade the YouTube Data API to bring more features, we’ll begin shutting down the old version on April 20, 2015. This will result in the current

How to remove bottom overlay ads from custom Youtube player Android

南楼画角 提交于 2019-12-11 07:09:33
问题 I am developing a video application on Android that plays videos from YouTube. For this purpose, I am using YouTube Android API. I have made my player to CHROMELESS as follows: public void onInitializationSuccess(Provider provider, YouTubePlayer player, boolean wasRestored) { player.setPlayerStyle(PlayerStyle.CHROMELESS); player.loadVideo(VIDEO); } Everything is working fine but while video playing bottom overlay ads are coming at the bottom. How can I hide or remove that bottom overlay ads?

Android: Error inflating class fragment , while using YouTubePlayerSupportFragment

假如想象 提交于 2019-12-11 06:36:16
问题 Error inflating class fragment , while using YouTubePlayerSupportFragment inside list adapter as list_item_row. Reference link My list_item_row.xml <RelativeLayout android:layout_width="match_parent" android:id="@+id/relativeLayout_youtube_player" android:layout_height="@dimen/preivew_image_height"> <fragment android:name="com.google.android.youtube.player.YouTubePlayerSupportFragment" android:id="@+id/youtube_player_fragment" android:layout_width="match_parent" android:layout_height="@dimen

YouTubePlayerSupportFragment shows Network error 400

只谈情不闲聊 提交于 2019-12-11 05:13:06
问题 YouTubePlayerSupportFragment shows Network error 400 I have created small demo to test YoutubeSupportFragment YouTubePlayerSupportFragment youtube_player_fragment = new YouTubePlayerSupportFragment(); youtube_player_fragment.initialize(DEVELOPER_KEY, new YouTubePlayer.OnInitializedListener() { @Override public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean b) { if (null == youTubePlayer) return; if (!b) { youTubePlayer.setPlayerStyle

YouTubePlayer: going fullscreen from portrait phone orientation can easily get out of fullscreen

允我心安 提交于 2019-12-11 04:14:02
问题 If you hold the phone in portrait orientation and you click fullscreen button (of YouTubePlayerView ) it easily can get you back (turns off fullscreen) if you shake the phone a little bit Official YouTube app works normally: you press fullscreen button while holding the phone in portrait orientation and if you shake it a little bit it still stays in fullscreen landscape mode. And if you rotate your phone to landscape orientation and back again to portrait orientation only then it turns off