Questions tagged [android-youtube-api]
The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications.
959
questions
-3
votes
0
answers
41
views
Calling YouTube v3 Api to retrieve random comments
So in my YouTube simulator game
[Unity Android Game] when player enter video name I want to get random images from YouTube videos based on the video name and random comments too. So I need OAuth 2.0 ...
0
votes
0
answers
32
views
Error screen presenter should be present - Youtube android player api
I a using youtube andoird player API. Video is not playing in the player.
In the player screen error showing that - "There was a problem with server [400] (playback ID XXXXXXX) Tap to retry"
...
0
votes
0
answers
90
views
YouTubeStandalonePlayer is stopped working?
YouTubeStandalonePlayer.createVideoIntent(
activity,
getString(R.string.places_api_key),
videoCode, 0, true, false
).let {
startActivity(it)
}
This is stopped working. It shows an error while playing ...
2
votes
2
answers
1k
views
How to implement YouTube IFrame Player API in Android using kotlin and jetpack compose?
YouTube Android Player API SDK has been fully deprecated. It is no longer supported or maintained by YouTube. So need to implement YouTube IFrame Player API in Android.
When play an YouTube video &...
0
votes
0
answers
103
views
YouTube player initialization error in my android app
I have an Android app, which uses YouTube videos as a data source and delivers to the users via firebase as a realtime database but from last few days it is showing an error having the following error ...
0
votes
0
answers
339
views
Please solve this error "An error occurred while initializing the YouTube player."
I have an android app, which allows to play YouTube video. I am using the latest YouTube API v3. I try it on a several devices within android version 7.0, 8.0, 9.0, 10, 11 and it works perfect (on ...
0
votes
0
answers
116
views
YouTubePlayer.play() not working in android-youtube-player
So I'm trying to programmatically play a YouTube video using this youtube IFrame wrapper . The video loads successfully and can be played via the default controls on the youtube UI, but the issue is ...
0
votes
0
answers
42
views
ERROR Error fetching video URL: [SyntaxError: JSON Parse error: Unexpected token: u]
I am working on React native App and am facing some issue in react-native-video doesn't have the feature to play a youtube video for that you have to use external libraries react-native-youtube so,now ...
0
votes
1
answer
38
views
Youtube player crashes when switching between landscape and portrait
I am using Android Youtube Player as
<com.google.android.youtube.player.YouTubePlayerView
android:id="@+id/youtube_player"
android:layout_width="match_parent"
...
0
votes
0
answers
256
views
Embed Youtube player in Android App (android studio in java)
Quick Background: I'm building an English learning app for adults and aged people to learn accents and improve vocab. I want to embed a reels like immersive video player which shows only yt shorts ...
0
votes
1
answer
79
views
Youtube Iframe api, visual and sound do not go together in video
I have an activity which has list of video thumbnail. When I click on the video thumbnail I create this fragment in the middle of the screen. I am sending the video id to fragment. When the fragment ...
-3
votes
1
answer
41
views
Hello I have this same problem with my Flutter app where the YouTube API v3 doesn't load on Playstore and only on the Emulator
Hello I have this same problem with my Flutter app where the YouTube API v3 doesn't load on Playstore and only on the Emulator ,
I tried to install Pro-Guard-rules and adjusted the build.gradle but ...
0
votes
0
answers
259
views
How to remove/hide next and previous button in iframe youtube in Android
I have tried this code and i want to remove or disable these next and previous video button from iframe youtube for android. I am using android java code for implementing the iframe youtube. I found ...
0
votes
0
answers
76
views
Android WebView keeps opening context menu
I'm using a WebView in a recyclerview to open an embedded YouTube player. But when the user scrolls the page, the webview catches the long touch and opens the context menu.
Context menu- (https://i....
0
votes
0
answers
646
views
Added info cards are not visible on Youtube video
I have updated Youtube video by using Youtube data api.I got successful response from api. I have updated my video title and also added cards with api. I can see title was updated instantly but not ...
0
votes
0
answers
105
views
Check if youtube video player is playing (Android Studio)
YouTubePlayerView youtubeplayerview;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);...
0
votes
0
answers
83
views
YoutubePlayerApi Fragment not appearing with Compose lazy column
I'm trying to build an FAQ screen where questions are displayed in a lazycolumn where only active question is expanded ,
Each questions consist of question , answer and youtube video using Youtube ...
0
votes
0
answers
39
views
Issue when using embedded YouTube API for app
I made an app that can watch videos uploaded on YouTube through YouTube API.
I saved the URL, channel name, and thumbnail of the videos in my database and it's being called up from the app and played ...
0
votes
0
answers
14
views
How to extend YouTubeBaseActivity in a page that's already extend Fragment? - Android Studio [duplicate]
My application is about to produce a slide pages like tab layout and all the pages need to display a video from YouTube. When I drag YouTubePlayerView into the design page, it doesn't show the design; ...
1
vote
0
answers
64
views
How to get YouTube Channel Subscribers and set them in a recycler view like list view?
I'm making an app where user can increase their channel subscribers by sub4sub. But problems is that I want get all subscribers list of user channel for verify that user subscribe or not. Question is ...
0
votes
1
answer
775
views
Get the list of all the Youtube Channels that I am subscribed to
I am trying to get a list of all the 800+ youtube channels that I am subscribed to.
It would be great if someone could provide a python sample for the same.
Yet to try the sample programs. But did ...
0
votes
0
answers
27
views
How do i correctly implement a youtubeplayer into a popup diglog in android studio?
I need some help implementing a youtube player into my application as I am new to this API. I want to build a youtubeplayer into a dialog that pops up once I call this function. I don't know if i ...
0
votes
0
answers
315
views
Youtybe player jetpack compose
I wanted to implement Youtube Player in jetpack compose by
@Composable
fun YoutubeScreen() {
val ctx = LocalContext.current
AndroidView(factory = {
val fm = (ctx as AppCompatActivity)....
0
votes
1
answer
173
views
Android Studio - How to Remove YouTubePlayerListener (PierfrancescoSoffritti)
How am I able to remove YouTubePlayerListener in YouTubePlayerView?
Im using the YouTube Player of PierfrancescoSoffritti
this is GitHub link: https://github.com/PierfrancescoSoffritti/android-youtube-...
1
vote
0
answers
100
views
Can I access the youtube player from external android app and get currently playing video ID and exact playing position?
Do you know, whether it is possible to access the YouTube player on a mobile phone from a self-developed android/iPhone App? In order to get the information, which video the user currently watches, ...
0
votes
1
answer
267
views
How to upload a video to YouTube using the API?
I am trying to use POST request to publish a video on YouTube using this official tutorial Videos: insert
Request URL:
https://youtube.googleapis.com/youtube/v3/videos?part=snippet%2Cstatus&...
0
votes
0
answers
74
views
When I try to play a not-playable youtube video, Youtube Player endless loading in android
When I try to play a not-playable youtube video,
the youtube player displays an infinite loading
I want to display a screen that fits the errorReason of onError method like PC youtube
I want
Error
but,...
2
votes
2
answers
207
views
NullPointerException is thrown in Youtube data api v3
I am using Youtube data api v3 in my app. I want to implement subscriptions.insert method in it, but my code thorws a NullPointerException. Below is my code
public class SubscribeActivity extends ...
4
votes
1
answer
748
views
YouTube Android Player API stopped working suddenly
My app uses this version YouTubeAndroidPlayerApi-1.2.2.zip https://developers.google.com/youtube/android/player/downloads
Recently my users started to report issues that videos aren't being played/...
2
votes
1
answer
530
views
Android YouTube SDK - video not playing in some android devices
I launched a native android app where I used YouTube SDK to play youtube videos.
Everything was going well for months. But since yesterday the app can't play videos in some devices. There aren't ...
0
votes
1
answer
46
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....
1
vote
0
answers
376
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 ...
1
vote
0
answers
109
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
335
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 ...
2
votes
0
answers
150
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 = ...
1
vote
2
answers
935
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
1
answer
2k
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
56
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
115
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
94
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
198
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
579
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
37
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:
...
1
vote
2
answers
662
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
576
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
74
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
153
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
1k
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
1
answer
164
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
1
answer
782
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 ...