android-youtube-api

YouTubeAndroidPlayerAPI can't play some videos

喜夏-厌秋 提交于 2019-12-21 03:48:18
问题 -- 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

How can I play YouTube live streams with the YouTube Android Player API?

微笑、不失礼 提交于 2019-12-20 04:56:06
问题 I have managed to play YouTube videos using YouTubePlayer. However, when I try to play live streams using YouTubePlayer, nothing happens. Is playing live streams supported by the API? If so, how do I do it? 回答1: There is no difference in playing normal YouTube videos and live videos.I was unable to play live videos on android version 4.1. however on version 4.2.2, live videos played successfully. Latest version of Official Youtube app must be installed in order to use API. Code: public void

How can I play YouTube live streams with the YouTube Android Player API?

守給你的承諾、 提交于 2019-12-20 04:56:04
问题 I have managed to play YouTube videos using YouTubePlayer. However, when I try to play live streams using YouTubePlayer, nothing happens. Is playing live streams supported by the API? If so, how do I do it? 回答1: There is no difference in playing normal YouTube videos and live videos.I was unable to play live videos on android version 4.1. however on version 4.2.2, live videos played successfully. Latest version of Official Youtube app must be installed in order to use API. Code: public void

NoClassDefFoundError Crash on Minimizing Youtube Player on Android 4.0, 4.2, 4.4

独自空忆成欢 提交于 2019-12-20 02:09:18
问题 Problem : Youtube Player crashes on minimizing youtube player activity/Fragment in the app. Cause : Youtube Player Update Code public class YouTubePlayerActivity extends YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_DIALOG_REQUEST = 1; private final String TAG = YouTubePlayerActivity.class.getSimpleName(); private YouTubePlayerView youTubeView; private String videoId; private YouTubePlayer youtubePlayer; @Override protected void

Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API

六眼飞鱼酱① 提交于 2019-12-20 01:42:10
问题 I'm trying to use Android Youtube API . Everything works ok excepts that when I extends AppCompatActivity . The UI of YoutubePlayer looks so bad. I tried both of YoutubePlayerFragment and YoutubePlayerSupportFragment . Nothing works. The logcat is like below: W/YouTubeAndroidPlayerAPI: Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API. I already updated the latest youtube api 1.2.2. But It's still not working. The weird thing is that If I extend

How to retrieve details of single video from youtube using videoID through Data API v3.0 in Android?

前提是你 提交于 2019-12-19 09:06:04
问题 My server sends the list of videoID to Android. Now, I want to show Title, Thumbnail and Number of Comments on these videos in List View. I have done this in web using GET request to https://www.googleapis.com/youtube/v3/videos?part=snippet&id={VIDEO_ID}&key={YOUR_API_KEY} but how to do this in Android? Is there any YouTube SDK to initialize YouTube object? How do I retrieve this information from YouTube using VideoID? EDIT: I have found a way to this using YouTube Data API Client Library for

Error: YouTubeService has leaked IntentReceiver … Are you missing a call to unregisterReceiver()?

十年热恋 提交于 2019-12-19 05:44:47
问题 I uses YoutubeServie API to play youtube video in my Android application. However when I exit my activity, I found the below crash log showing, even my App still works. 02-28 15:54:02.081 20374-20374/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver com.google.android.libraries.youtube.player.audiofocus.HeadsetPlugReceiver@a843e7c that was originally registered here. Are you missing a call to unregisterReceiver()? android.app

Is there a way to get the “Watch Later” playlist using YouTube API v3?

拈花ヽ惹草 提交于 2019-12-18 15:19:23
问题 I was wondering if this is available in v3 (I know it's possible with v2)? I've tried using watch_later as the id and mine=true in a playlist request. The watch_later playlist is not returned in the generic playlists list results when specifying mine=true . 回答1: Update As of Sep 12 2016, watch later and watch history can no longer be retrieved YouTube Data API v3. Original answer (no longer works) You can get the IDs of you special private playlists with an authenticated request to GET https:

Is there a way to get the “Watch Later” playlist using YouTube API v3?

大兔子大兔子 提交于 2019-12-18 15:19:15
问题 I was wondering if this is available in v3 (I know it's possible with v2)? I've tried using watch_later as the id and mine=true in a playlist request. The watch_later playlist is not returned in the generic playlists list results when specifying mine=true . 回答1: Update As of Sep 12 2016, watch later and watch history can no longer be retrieved YouTube Data API v3. Original answer (no longer works) You can get the IDs of you special private playlists with an authenticated request to GET https:

YouTube Android Player API throws “BadParcelableException ClassNotFoundException when unmarshalling: asc” with new YouTube version

≡放荡痞女 提交于 2019-12-18 13:18:08
问题 Filing bug to YouTube Android Player API Library engineers: see android-youtube-api tag Over the course of the past week and a half, I've noticed this weird BadParcelableException steadily increasing in our app and have nailed it down to YouTube's new release on android. This crash will occur if your app is playing a youtube video, bringing your app to background, force stopping the Youtube app, and resuming your app again. Crash reproducible on Youtube version 12.19.56. Also tested on an