Questions tagged [android-youtube-api]
The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications.
945
questions
0
votes
0
answers
16
views
I use Youtube Android API and it never shows me metrics
I need the guidance of an expert who has used the Youtube API for Android.
I have an Android Application that uses the YouTube API, which works well, shows all the videos, has a good amount of visits, ...
0
votes
1
answer
21
views
YoutubePlayer API endless loading issue
I am starting a new intent whenever a new geofence transition happens.
In GeofenceTransitionService.java:
Intent intent = new Intent(GeofenceTransitionService.this, VideoActivity.class);
intent....
0
votes
0
answers
30
views
Youtube live stream to specific Channel
I am using the below code to create event in Youtube for Live Streaming. Everything works fine, my problem, I want users to live stream to our company's Channel.
At present events are getting created ...
0
votes
0
answers
28
views
Android Studio: YouTubePlayer
i used YouTubePlayerView to add youtube video to my app and i used YouTubePlayer to save it after initialized.
how can i get the sections name and time of youtube video in the app?
i want to get the ...
1
vote
0
answers
33
views
Unexpected response code 400 in YouTubeAndroidPlayerApi.jar demo app
I'm getting these errors after downloading and running the YouTubeAndroidPlayerApi.jar demo app
logs from IDEA
E/Volley: [1054] axb.a: Unexpected response code 400 for https://www.googleapis.com/...
0
votes
1
answer
64
views
Query re RecyclerView for YouTube Channel & using YouTube API (Android)
I'm after some assistance please if anybody could help. I've followed a guide (funnily enough on YouTube!) concerning how to register for an API Key for YouTube, create a RecyclerView on an App and ...
1
vote
0
answers
29
views
Android YouTube API Code only loads one video
private lateinit var youtubePLayerInit: YouTubePlayer.OnInitializedListener
private fun openTrailer(videoId: String) {
val dialog = Dialog(this)
val trailerDialogBinding = ...
0
votes
2
answers
164
views
YouTubeBaseActivity in Jetpack Compose
I want to use YouTube player from YouTubeDataAPI v3 in Jetpack Compose. But it should be extended of YouTubeBaseActivity. The main problem is that activity extended of YouTubeBaseActivity haven't ...
1
vote
0
answers
46
views
YouTubeAndroidPlayerAPI only loads once
private lateinit var youtubePLayerInit: YouTubePlayer.OnInitializedListener
private fun openTrailer(videoId: String) {
val dialog = Dialog(this)
val trailerDialogBinding = ...
1
vote
1
answer
197
views
Youtube Music API for Uploaded music
Problem:
Youtube Music sucks for playing back music you have uploaded for years. The app sucks, and the Android Auto app sucks. I've contacted the YT Music team many times, but they don't seem to ...
0
votes
0
answers
40
views
Youtube data API user quota usage Android
I have been using Youtube Data API v3, and as I am aware, API has a limit of 10,000 Units per day.
I am autheticating user using OAuth, and I want to know is there any way to use Logged in user ...
0
votes
0
answers
13
views
YouTube player closes when removing YouTube app from back stack
I start my activity and the android-youtube-api starts playing video. Now I go to YouTube app in phone by clicking on YouTube icon in youtube player, and then I kill the YouTube app by removing it ...
0
votes
0
answers
60
views
NanoHTTPD Android Library for Serving webpage for youtube playback
i am trying to play a youtube video in android through NanoHTTPD android web server library using a html form by providing the youtube id of some video in the served html file into the html form. So ...
0
votes
0
answers
50
views
Violating the Device and Network Abuse policy when add YouTube
My application has been removed from google play and I do not understand the problem or how to solve it. I use the YouTube API to display videos and follow all the guidelines to do so.
First, an email ...
0
votes
1
answer
62
views
YouTube API key is not working after uploading android App in play store. Its working properly before uploading in Genymotion and all Android Emulator
YouTube API key is not working after uploading android App in play store. Its working properly before uploading in Genymotion and all Android Emulator.
Before Uploading to play store
After Uploading ...
2
votes
0
answers
233
views
Youtube Android Player API 4k livestreams are not working: Error screen presenter should be present
I'm using YouTubeAndroidPlayerApi-1.2.2.
Youtube app version 16.43.34
Most of videos/livestreams are working fine but for live streams labeled as 4k I get an error:
E/YouTubeAndroidPlayerAPI: Error ...
0
votes
1
answer
28
views
Android application can't launch some videos from YouTube
I try to play video from YouTube in the application. Some videos are launching, but for some I get an error 'Video is not available'!
I have no idea what is the difference!
My code:
...
0
votes
1
answer
98
views
How to update youtube initialVideoId in flutter
I am using this package to show videos,
And I am trying to update initialVideoId on list of videos (similar to yourube app, there is list of videos under player and you update player with tapped video)...
1
vote
1
answer
236
views
Android - problem with Google API and Youtube Data v3
I am facing an issue with Youtube API v3, in particolar with Google API (gapi for short).
My final goal is to call the Youtube Data API videos/list to obtain all the info about a specific video.
As ...
1
vote
0
answers
51
views
YouTube Android Player API - how to open links in the API instead of YouTube app?
I am using the YouTube Android Player API which can play the YouTube videos.
When I click to another video inside the player like a video inside the MORE VIDEOS, it always opens the video in the ...
1
vote
0
answers
73
views
If i use youtube v3 api and watch videos then i get watch-time count?
If I use YouTube API v3 in my Android app and people watch videos of my YouTube channel from my Android app then those watch-time add to my YouTube channel watch-time?
1
vote
1
answer
676
views
How to use YouTube Player Fragment in kotlin?
I'm trying to show some Youtube videos in my Android app. After reading some tutorials, I decided to use YoutubePlayerFragment. However, when I run my code below, I just got some error.
package com....
0
votes
0
answers
198
views
Android Webview Crash while playing Youtube embedded video
The goal: To play youtube video at the top of the page, and the bottom of the view people can have a chat etc.
Sample code
This crash only happens with Youtube video, and it works completely fine with ...
0
votes
1
answer
72
views
How to get youtube channel name from youtube v3 api in android
is there any way we can get the channel name of our logged-in google account in android using youtube's v3 API?
I didn't found any documentation related to the channel name.
I don't want videos and ...
0
votes
0
answers
27
views
YouTubeStandalonePlayer not working properly for the second time
I am using below YouTubeStandalonePlayer code snippet to play youtube videos:
val intent = YouTubeStandalonePlayer.createVideoIntent(
activityContext() as Activity?,
...
0
votes
1
answer
265
views
Play Youtube Video in Picture in Picture mode
My app contains links to youtube videos, what I want is when the user clicks on a picture the respective youtube video should be played in a Floating window as it happens in WhatsApp.
Is there any way ...
0
votes
0
answers
288
views
Get YouTube Audio Flutter
I'm trying to create an app that has the ability to play youtube audio in the background, but, while I've found a way to play the audio from a mp3 file online, I haven't found a method to do the same ...
0
votes
0
answers
25
views
Youtube Insert API in Android
I need to develop an App in Android where I want to use Youtube Insert API to upload Video to my channel directly from the Android device.
Unable to get any document for the same for Android.
Could ...
0
votes
0
answers
69
views
Clipping stat for nerds information from youtube using adb commands
I am working on QoE evaluation of youtube and I am trying to extract stat for nerds from youtube in android. I have developed series of adb commands to automate my screen to go to youtube and open ...
0
votes
0
answers
90
views
youtubeplayer is released, when i go to youtube from youtubeplayer and kill the youtube app and come back to my app
Tutorial activity
private lateinit var youTubeView: YouTubePlayerFragment
private lateinit var player : YouTubePlayer
oncreate(){
initEvent()
}
private fun initEvent() {
try{
...
0
votes
0
answers
95
views
How to set playback rate In YouTube Android Player API? No such method available in source code. Is there any workaround to set the playback speed?
How to set playback rate in YouTube Android Player API? No such method available in source code https://developers.google.com/youtube/android/player . Is there any workaround to set the playback speed?...
0
votes
0
answers
91
views
Use YouTube API to get videos in Recommendation Section of a user
I want to implement a feature in my Flutter App which requires knowing the Home Feed (the recommendation section you see on YouTube when you first open your app which is customised by YouTube's ...
0
votes
0
answers
16
views
is possible let multiple youtube players play the same content?
In android, I already have a youtube player on fragment.
When the user switches the fragment, I have to send the youtube player view to other fragments to play, which is very complicated and ...
0
votes
0
answers
62
views
How to open a YouTube video link in an In App Browser instead of opening YouTube system app
I am developing an ionic 5 app and i am using InAppBrowser plugin in it.What i want to do is when i click on the button which triggers the function in which i have stated a YouTube video link it ...
0
votes
0
answers
28
views
Is there a way of putting custom buttons/widgets in a YouTube fragment?
I want to put my own widgets on a YouTube fragment. I have used a YouTube fragment and a DialogFragment. I have tried to achieve it in many ways, but the YouTube fragment overshadows the widgets in ...
0
votes
1
answer
323
views
What is the best way of using Youtube API in Android?
I want to implement YouTube API in my Android app with some restrictions.
The Play/Pause button should be visible. (Both DEFAULT and MINIMAL style support this)
The time bar should be visible and ...
0
votes
0
answers
39
views
View null on accessing from inner class : Fragment
I have taken youtube-api sample app VideoListDemoActivity class for android and converted it to fragment to use in my app.
In inner class VideoListFragment the view videoBox from fragment is accessed, ...
1
vote
0
answers
913
views
What are the UI colors for the YouTube superchat tiers?
I'm currently doing some work with the Youtube Live Streaming Api - more specifically the live chat messages API. Its all working fine for now but my main problem is with superchats and superstickers.
...
1
vote
0
answers
216
views
Youtube API check someone's channel subscription
I'm developing an app where a user can subscribe to someone else channel. I know it's not a good idea but I'm just doing an experiment.
Here's an example of an app where users can subscribe to someone ...
1
vote
1
answer
3k
views
Does YouTube Data API billing change if the APIs are called from GCP server or AWS server?
I'm building an Android app which embeds YouTube videos. I'm confused on how the billing works for the YouTube Data API v3. Is it dependent on whether the APIs are called from GCP server or AWS server?...
0
votes
1
answer
96
views
Ad removal for premium subscribers in Android YouTube Player API
I am using YouTube Android Player API version 1.2.2 by importing it as a jar file on Android.
For my users who are subscribed to YouTube Premium,
I want to remove the ads that appear before the ...
0
votes
1
answer
169
views
Why does YT player causes inflated to crash the App
I'm trying to have YouTube player in my App.
App kept crashing, because I needed to change "extends AppCompatActivity" to "YouTubeBaseActivity" in my MainActivity, but I've code ...
1
vote
1
answer
31
views
YouTube API maxResults not getting on what number i desired using GET
This is the sample code on their Try this API web app
GET https://youtube.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&order=date&q=nyemenzo&key=[YOUR_API_KEY] HTTP/1.1
...
1
vote
0
answers
260
views
How do I actually install and use YouTube Android Player API?
I want to make a Flutter app that can play YouTube playlists using the YouTube Android Player API, found here: https://developers.google.com/youtube/android/player
The "Getting started" ...
1
vote
0
answers
45
views
How can I create a function to determine the current video Url from youtube?
How can I create a function to determine the video URL which is currently playing on YouTube.
I am trying to create a youtube minimizer app but don't know how to get the current video's URL which is ...
0
votes
2
answers
2k
views
Android app rejection: Your app doesn't comply with the Device and Network Abuse policy
I got App rejection notification from Google Play. the reason is
Issue with your app
Your app doesn't comply with the Device and Network Abuse policy.
Issue details.We found an issue in the following ...
-1
votes
1
answer
188
views
Application out of compliance with the Youtube Developer Policy. Why?
i have sent request to YouTube to get more Quota, they send me email with screenshot.
Email:
"We have reviewed your quota extension request for project number 49182590595 and have revoked the ...
0
votes
0
answers
49
views
Why do I exceed the quota of Youtube Api v3
I receive error 403 which is exceeding quota although I'm still in the testing phase which is using one device and I'm the only one using it plus the project is on billing level so it charges me if ...
0
votes
1
answer
66
views
Youtube.Search.list(..).getItems return a String? how to easily transform or filter items?
I call YouTube Data API and get this error:
searchResults.getItems().map(item => item.id.videoId)};
searchResults.getItems(...).map is not a function
items are a String? how can I easily transform ...
1
vote
1
answer
1k
views
Unresolved reference in Kotlin Android Studio fragment
I'm trying to use this package https://github.com/PierfrancescoSoffritti/android-youtube-player to play a youtube video. The error I'm getting is Unresolved reference: youTubePlayerView. I've never ...