Questions tagged [ytplayerview]

YTPlayerView is YouTube's official iOS Player Helper class which facilitates the playback of YouTube videos in iOS applications.

YTPlayerView (also known as youtube-ios-player-helper) is YouTube's official iOS Player Helper class which facilitates the playback of YouTube videos in iOS applications. Using a YTPlayerView is the only way to integrate a consumer application with YouTube without breaking their Terms of Service.

Use this tag only for questions about integrating with or using the YTPlayerView class on devices.

If you have a general question about YouTube or the YouTube API, use one of the related tags:

92 questions
0
votes
0 answers

Cast button not available in YTPlayerView

cast button not available in YTPlayerView for iOS, which has only play, pause, seek, and so. How to get cast button in YTPlayerview?
Vinoth kanna
  • 57
  • 1
  • 6
0
votes
0 answers

Can any YouTube channel restrict to don't allow to play videos in YoutubePlayerView in Android?

I am making an Android app for YouTube with YouTube API. I just retrieved JSON and parsed into List, data parsed and displayed in list successfully. But when I pass data to YoutubePlayerView to play video, it was blocked. So is there any way to…
0
votes
1 answer

Get a current frame from Youtube YTPlayerView

Does anyone know a working solution to make a screenshot of a youtube video on iOS ? A standard "UIView to UIImage" solutions like snapshotting current graphic context or a layer of the view don't work as I get only a black, empty video player with…
Bartek Uchański
  • 119
  • 1
  • 12
0
votes
0 answers

Playback rate not working on ios YouTube YTPlayerView

I'm successfully playing a video retrieved from YouTube API in YTPlayerView This is the video: https://www.youtube.com/watch?v=sV1e-iSo5As Viewing directly in Chrome, I'm able to change player rate to various rates (0.25, 0.5 etc) However when I…
Jon Cook
  • 127
  • 1
  • 11
0
votes
1 answer

How to play a video in background using YTPlayer in iOS app?

I am getting the following error message... Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[YTPlayerView playerView]: unrecognized selector sent to instance 0x7fd77bd41f80' and here is my code.. -…
Roby
  • 3
  • 5
0
votes
1 answer

How to display a playlist of a YouTube channel using YouTube API in Swift3

Question 1 : I am using YouTube API to display a playlist of videos in a UITableView but it's not working. It's working fine when I make it for a single video, one video appears in the UITableView. How can I display a playlist of any YouTube…
Zaid Mustafa
  • 211
  • 1
  • 4
  • 12
0
votes
1 answer

YTPlayerView not playing video with Youtube URL

I am using YTPlayerView for playing embedded videos in my app. Everything works perfect with ID but video doesn't play with URL. Here is my code -(IBAction)playVideo:(id)sender{ self.playerView.delegate = self; self.playerView.hidden =…
GameFreak
  • 63
  • 8
0
votes
0 answers

YTPlayerView playing video in table view cell without sound in device

I'm playing youtube video using YTPlayerView into table view cell using swift3.0 . When app running in Device then there is no sound of that video but in simulator video playing with sound. My question is how to play video using YTPlayerView with…
Tapas_ios
  • 73
  • 6
0
votes
1 answer

How to play youtube videos inside application using Adapter

Hi I want to play YouTube videos in my application and I am Using THIS LIBRARY . I am initializing all values inside Adapter so I can't `extend YouTubeBaseActivity class. Please tel me a good way to achieve my goal. Just like other app, I also want…
coder_baba
  • 447
  • 3
  • 21
0
votes
1 answer

Google cast youtube embed videos

Hi guys i am working on an app that fetches youtube video ids from my server & play those videos using YTPlayerView framework. Now, i want to stream those videos using GoogleCast. Some where i saw that google cast not works on UIWebView. Basically…
Ravi
  • 2,441
  • 1
  • 11
  • 30
0
votes
0 answers

iOS AlertView above YTPlayerView

I have YTPlayerView on my viewController. If i create UIAlertController and show it by method self.present(alertView, animated: true, completion: nil) , alert will be shown under player view. How can i show alertView above all views on my…
0
votes
0 answers

Previous button doesn't work for “youtube-ios-player-helper”

I have a problem with "youtube-ios-player-helper" for iOS (XCode / ObjC), i.e. previous button doesn't work. Next song in playlist works, but previous song doesn't work. It works with custom buttons for next and previous, like in sample, but…
Vladimir88dev
  • 733
  • 1
  • 10
  • 19
0
votes
1 answer

YTPlayer View not working properly in iPhone

I am using YTPlayerView in the application to play YouTube videos. It is working proper in iPad but not in iPhone. In iPhone the player directly plays in full screen due to which any gesture on the player is not working. Have to exit full screen…
Amon
  • 99
  • 1
  • 9
0
votes
0 answers

YouTube Embedded player view controller not deallocating

I'm using a YTPlayer view controller to play youtube videos in my app. When an instance is created, memory usage spikes up to 80 MB on the simulator. I expect it to go back to its normal value (35 MB) when the view is exited but it doesn't. All the…
Swapnil Dhanwal
  • 399
  • 2
  • 6
  • 17
0
votes
0 answers

Add spinner in YTPlayerView

I want to add a spinner in YTPlayerView. I got merged commit of the code which does it. https://github.com/youtube/youtube-ios-player-helper/blob/master/Classes/YTPlayerView.m But the problem is that it is a delegate method in which a view has to…
JMS
  • 271
  • 4
  • 15