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
4
votes
1 answer

Customizing YouTube Player in iOS

I have an app that streams YouTube videos using the YTPlayerView by Youtube. I want to start customizing it (controls/ rotation) After a few days searching on the web i couldn't find an answer to this. All i could find is using the JS/Ruby/HTML to…
Yoav Gross
  • 41
  • 1
  • 3
3
votes
0 answers

iOS YTPlayerview doesn't load embed video while Android Player API does

I am currently working on an iOS application that is displaying video highlights for football matches. Some of our embedded videos are working successfully, however some videos display this error message. Error Message Image The same videos that are…
3
votes
2 answers

How to detect when a user exits the YouTube Player view on iOS?

When using the YouTube helper library for iOS, I want to be able to detect the change of state when a user exits the player to stop playback. I've tried to use kYTPlayerStateEnded but that only triggers after the video has reached…
3
votes
2 answers

YTPlayerView - Autorotation support to YTPlayerView

I am using YTPlayerView classes to play YouTube videos. Below is the code i am using to load video according to device screen size (large size for iPad and small size for iPhone). And it is working fine. Problem -- When i change device mode to…
Yogendra
  • 1,728
  • 16
  • 28
2
votes
2 answers

How to remove title and channel icon from YTPlayer view in iOS

How can I remove the youtube logo and the video title from YTPlayer in iOS. The volume and full-screen button are inaccessible due to the overlapping of the channel icon and title.
Bibin Jaimon
  • 534
  • 1
  • 6
  • 15
2
votes
0 answers

UIWebView Keep Video Playing After Exiting Fullscreen

In our app, we want to be able to keep a video playing after the user has quit fullscreen mode. The video is a YouTube one, thus it uses YTPlayerView framework, which uses UIWebView and iframe player to play the video. As you have probably noticed,…
Nicholas
  • 747
  • 7
  • 23
2
votes
0 answers

Prevent rotation on embedded YouTube videos

I have a UIViewController which basically only runs in a landscape mode. This UIViewController has a UIView that inherits YTPlayerView to play YouTube videos in it. As described, the UIViewController never goes to portrait mode. However, when the…
Ennabah
  • 2,303
  • 2
  • 20
  • 39
2
votes
1 answer

ios - How to hidden YTPlayerView Youtube logo

One day, the YouTube logo appears like a picture. Vanish together when disappears. Touch the image to reappear. If you touch the logo, there is a problem with YouTube. I want to hide the logo. We looked at the parameter at the youtube developer…
J. soo
  • 35
  • 9
2
votes
1 answer

iOS YTPlayerView force video quality

I am currently using iOS-youtube-player-helper library in our application. There is a view controller, with a YTPlayerView that has an aspect ratio of 16:9, which means it takes only a part of the screen. The video is loaded in medium and no matter…
Nicholas
  • 747
  • 7
  • 23
2
votes
1 answer

YTPlayerView load a list of videos

i am trying to play Youtube videos on my app. I am using YTPlayerView library for playing a video by video id. Problem is when i am trying to play a list of videos player showing an error that "An error occurred. Please try again later. (Playback…
Ravi
  • 2,441
  • 1
  • 11
  • 30
2
votes
0 answers

Enable to find next and previous button of YTPlayerView

I want to change and play youtube video on next and previous button click of YTPlayerView. I'm able to play single video but when But I want to change video on next and previous button click. I played single video using this below code : …
Monika Patel
  • 2,287
  • 3
  • 20
  • 45
2
votes
1 answer

How to detect YTPlayerState.Ended using Swift?

I'm playing You Tube videos in my app and trying to detect when a video is paused or ended? I've found the kYTPlayerState function in the .m file, but having trouble converting it's use to Swift. Here is what I have.... func playerView(playerView:…
Charles Jr
  • 8,333
  • 15
  • 53
  • 74
2
votes
1 answer

Playing video with youtube-ios-player-helper

I have been trying to have my app stream videos from YouTube, learning from the AppCoda tutorial and so far I have successfully connected to its JSON database, and downloaded the info from the video I need. However, when I feed it to the YouTube…
Jacobo Koenig
  • 11,728
  • 9
  • 40
  • 75
2
votes
0 answers

YTPlayer ios helper - iOS 9 constraint issue

YTPlayer iOS helper shows the below warnings when I try to run the video in fullscreen. I don't see these warnings in iOS8. Update - This seems to be iOS 9 bug from apple where fullscreen video played from UIWebView on iOS 9 device will show these…
Raj
  • 537
  • 1
  • 5
  • 18
2
votes
2 answers

Play YouTube video full screen

I want to use YouTube Helper https://github.com/youtube/youtube-ios-player-helper to play YouTube videos in my app. I want to display the YTPlayerView in a table view cell, and when the video is tapped, I want it to start playing in full screen…
primulaveris
  • 966
  • 14
  • 20