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

Navigation Bar disappearing when tapping done from youtube embedded player (iOS)

I have a Youtube embedded player in one of the views of my app. If I exit playback in landscape mode, the navigation bar shrinks to half its size throughout the app. The app is set to portrait mode by default. Here is the shrunken navigation bar The…
Swapnil Dhanwal
  • 399
  • 2
  • 6
  • 17
0
votes
1 answer

Error while setting YTPlayer property youtube player api ios

I'm trying to embed a video in an app, using a button to start and a button to stop the video. I'm following the official google developer guide to achieve this, but when it says to enter in the ViewController.h class the following…
DarthGalm
  • 45
  • 1
  • 8
0
votes
1 answer

How to link a Youtube account to an embedded YTPlayerView player in iOS?

I have an embedded Youtube player in my iPhone app. I'm using the youtube-ios-player-helper library. What I want to achieve is to authenticate the user and then for the videos he watches using the embedded YTPlayerView player (playing inline) to…
0
votes
1 answer

YTPlayerView memory issue

I am using YTPlayerView for showing YouTube videos in my application. I instantiate the YTPlayerView in an IBAction function with a variable that is local to that function. Something along the lines of: IBAction func presentPlayer(sender:…
Swasidhant
  • 1,231
  • 1
  • 12
  • 13
0
votes
1 answer

YTPlayerView doesn't play video when you click

I am trying to use YTPlayerView in my Swift (2.x), iOS 9 project but I am only able to show the video preview with the play symbol. Nothing happens when you click the symbol. playerView.loadWithVideoId("someId")
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
0
votes
1 answer

youtube-ios-player-helper message: "This video is restricted. Try signing in with a Google Apps account."

I want to play embedded youtube videos in an iOS app, using the YTPlayerView provided at https://developers.google.com/youtube/v3/guides/ios_youtube_helper Testing my code with the following video for example, https://youtu.be/jBm7O1XCYiE, I end up…
Kaan
  • 11
  • 1
  • 3
0
votes
1 answer

How to get playlistid for YTPlayerView

I am loading a video in YTPlayerView, but for loading playlist in YTPlayerView we need playlistId. I don't see this in the response playerVars = @{ @"autoplay" : @1 ,@"rel" : @0 ,@"playsinline" : @1 …
Jagveer Singh
  • 2,258
  • 19
  • 34
0
votes
1 answer

Youtube embedded player not working on the physical device

I followed the tutorial on how to embed youtube player in my ios application. The application works perfectly on the simulator. When I load it on the physical device it gives me a black screen but with no actions at all. I checked if I go to the…
Alaa Agwa
  • 162
  • 1
  • 12
0
votes
1 answer

How to play YouTube video in vertical mode?

YouTube player update allow vertical video can display fullscreen in vertical mode. I was asked to fit YouTube video in a vertical view (not a full screen mode) in our iOS app. We use YTPlayerView to playing YouTube video, but it doesn't provide any…
jAckOdE
  • 2,402
  • 8
  • 37
  • 67
0
votes
0 answers

AirPlay View in YTPlayerView doesn't appear

I'm using YTPlayerView (YouTube helper library) in my iOS application and according to requirements, I've made custom controls for airplay, share, play etc. For that I've hidden the default controls of YTPlayer using "control" tag. The problem I'm…
Fayza Nawaz
  • 2,256
  • 3
  • 26
  • 61
0
votes
4 answers

How to proper use YouTube iOS Player Helper?

I am trying to load videos/playlists from YouTube (personal account) using Swift. I added the YTPlayerView class and iframe HTML file to do so but the videos are not loading. I added a UIView in the storyboard and changed its class to YTPlayerView…
0
votes
2 answers

How to use YouTube iOS player helper with use_frameworks! with CocoaPods

As the question states, I'm trying to use this module in my Swift project using the use_frameworks! option on my Podfile. Like so: platform :ios, "8.0" source 'https://github.com/CocoaPods/Specs.git' use_frameworks! pod…
alcarv
  • 889
  • 6
  • 15
0
votes
1 answer

Loading video to YTPlayerView

I am trying to use a YTPlayerView in my app and I'm running into problems with loading in the video. I have checked the videoId that it is using and when I paste it into safari (www.youtube.com/watch?v=videoId) I arrive at the correct video on…
jeremyabannister
  • 3,796
  • 3
  • 16
  • 25
0
votes
1 answer

Allow taps on YTPlayerView to play video or have button overlay the YTPlayerView

I'm using YouTube iOS Player Helper View and the player itself works wonderfully. However, I want the user to be able to tap on the video and have it start playing. I tried adding a UITagGestureRecognizer to the YTPlayerView, but it didn't register…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
-1
votes
2 answers

How to play Youtube Video from a browser app on non full screen in Objective C

I am working on Browser app, I want when user searches any video on youtube.com the video is playing on full screen but I want the video to be open on a fixed size small frame, Say Half of phone screen size. I have Video url and video id. I have…
Surbhi Garg
  • 414
  • 5
  • 19