Questions tagged [youtubeplayer]

88 questions
24
votes
1 answer

Hiding YouTube embed title and 'More videos' (Updated)

Is there an official way to hide the title and the More videos section from a YouTube embed (latest version as of July 2nd 2018), and just show the YouTube logo bottom-right? I know the embed used to have this ability some time ago. What I'm…
Vlad
  • 997
  • 1
  • 5
  • 18
18
votes
5 answers

Views overlayed above YouTubePlayerFragment or YouTubePlayerView in the layout hierarchy cause playback to pause immediately

I'm using the YouTube Android Player API and want to overlay a view on top of a YouTubePlayerFragment in order to display contextual information and controls above the playing video. Unfortunately it seems playback does not work correctly in either…
Jeff Gilfelt
  • 26,131
  • 7
  • 48
  • 47
8
votes
3 answers

How to autoplay youtube video in WKWebView?

I have written a code to play youtube video in WKWebView. I want to autoplay video when a screen is loaded also the inline video should play not in the new screen. Below is my code. @IBOutlet weak var myPlayer: WKWebView! override func…
Manish
  • 608
  • 1
  • 11
  • 23
7
votes
3 answers

YouTube player opening unnecessarily during scrolling of CollectionView

I am working on a chatbot where the different type of response comes from the server and I display the response using UICollectionView cells in chat screen. Different type of cells presents according to server response. when server response with…
7
votes
1 answer

YouTubePlayerView Initialization Failure

I have used YouTubePlayerView in My project. But there is a problem while playing the video. And I tested it in some devices, Moto lollipop (api 22) --> Shows "unfortunately Youtube has stopped" Swipe Marshmallow (api 23) --> It keeps on loading…
Jyoti JK
  • 2,141
  • 1
  • 17
  • 40
5
votes
2 answers

Looking for a Jetpack Compose YouTube Video Player wrapper dependency

Intro I'm new to Jetpack Compose and it is not that easy for me to understand or get everything correct on my first try. That's why I love to have a look at other's open-source work to understand the topic a little bit better. Problem My current…
Tobonaut
  • 2,245
  • 2
  • 26
  • 39
5
votes
0 answers

NullPointerException in onFilterTouchEventForSecurity with YouTubeBaseActivity

Am using an Activity which extended from YouTubeBaseActivity and YouTubePlayerView to play Videos from Youtube. sometimes app crashes with below exception. "STACK_TRACE": "java.lang.NullPointerException: Attempt to invoke virtual …
Geo
  • 746
  • 6
  • 14
4
votes
1 answer

Android YouTube Player Livestream

I am very new to Android Dev, Java, and in general - so bear with me. I have been experimenting with GitHub PierfrancescoSoffritti android-youtube-player This works very well as a customizable open source YouTube player for Android, with one…
BinDev
  • 191
  • 13
3
votes
4 answers

YouTube Android Player API deprecated in 2023 so how can Implement youtube player in android studio

I want to play youtube video inside viewpager, I ready documentation where mentioned that download the youtube android player api sk . But in the documentation youtube player documentation showing it is deprecated so how can I implement this. I want…
3
votes
3 answers

Getting Error when using Android YouTube Video Player 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5' after removing JCenter()

This is the error while building the gradle. [![Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not find…
3
votes
0 answers

PierfrancescoSoffritti Android Youtube Player Callback not working

I am trying to implement the PierfrancescoSoffritti youtube Player but I am having issues the player callback OnReady never gets called here is my code I don't know whats the issue here …
vivek panchal
  • 319
  • 1
  • 12
3
votes
1 answer

Android 11 YouTubeAndroidPlayerApi not working

I using YouTubeAndroidPlayerApi for Playing YouTube videos it was working good before Android 11 but when i installed System update to Android 11 it's stop working. I'm using OnePlus 8 device i also tested this code in Pixel 2 XL emulator but same…
3
votes
0 answers

playing YouTube video in PIP mode like WhatsApp

I am currently wokring in project where I've to implement a feature (PiP mode)in which if a user clicks on the youtube link, it should play in PIP mode like WhatsApp. I am using Youtube Android Player API. I'm able to put the video in PiP mode but…
3
votes
1 answer

Youtube Player View not displaying video using with youtube API and channel import

I am using youtube API top import youtube channel in android app. I have created MainActivity, Adapter, Video Datails Class and another activity named youtubePlay activity. the xml for main activity consists of list view and another custom layout…
summyia haris
  • 121
  • 1
  • 15
3
votes
2 answers

Is there a way to enable controls in video player playing youtube videos flutter web

I am making a page to show a lot of videos from youtube and am using the ext_video_player in flutter web. But now I want to enable show controls. I also want it to be possible for an app. I saw in this stack over flow post. But the chewie player…
Siddharth Agrawal
  • 2,960
  • 3
  • 16
  • 37
1
2 3 4 5 6