android-youtube-api

YouTube API 3 Upload Video - Access not configured - Android

依然范特西╮ 提交于 2019-11-26 20:45:21
问题 I am working on an Android app that records video and allows the user to upload it directly to YouTube using the YouTube Data API v3. I have set up my app in Google's API console. Under services, I have YouTube Data API v3 enabled. Under API access I have both a section "Client ID for installed applications" (including a Client ID and Client Secret) and a section "Simple API Access" -> "Key for Android apps (with certificates)" (which includes an API key and an "Android Apps" section, which

Struggling with Youtube Player Support Fragment

天大地大妈咪最大 提交于 2019-11-26 18:14:39
问题 Im trying to use the Youtube Player Support Fragment in a fragment but the app always crash (NullPointerException) and I have not been able to find any similar post to fix it. I have import import android.support.v4.app.Fragment so that should not be the problem. This is how my fragment class looks like: package com.example.activitydetector; import com.google.android.youtube.player.YouTubeBaseActivity; import com.google.android.youtube.player.YouTubeInitializationResult; import com.google

YouTubePlayerFragment inside ReyclerView

喜夏-厌秋 提交于 2019-11-25 15:19:04
I have a RecyclerView with CardViews inside it. I want each CardView to have its own YouTubePlayerFragment. Even if they can't all be active at once, I can't even seem to instantiate the YouTubePlayerFragment in any CardView but the first in the RecyclerView. When clicking the button on the card that's supposed to set up the YouTubePlayerFragment, it always sets it up on the first card, even if I've clicked the second card. Is what I'm trying to do possible? Here are the relevant parts of code: Holder for the fragment in CardView XML: (using fragment directly in xml was giving binary XML