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
16
votes
0 answers

Multiple UIWebView WebCore Crashes

I'm embedding YouTube videos using the power of the YouTube Helper Library. However, we're seeing multiple crashes in production related to WebCore and a couple related to JavaScriptCore. It might be important to note that these crashes are only…
Justin Rose
  • 1,041
  • 7
  • 14
11
votes
2 answers

YouTube-Player-iOS-Helper can't use YTPlayerView class

I am trying to implement the youtube-ios-player-helper, found here: https://github.com/youtube/youtube-ios-player-helper What I did: Edited my podfile, pod update, everything fine without any errors, Alamofire - which was also added via cocoapods…
longbow
  • 1,593
  • 1
  • 16
  • 39
10
votes
3 answers

Playback restricted on iOS for VEVO videos from YouTube API

I have embedded videos (pulled from YouTube API v3) into my iPhone app using a UIWebView as suggested. The problem is that some videos, such as those from VEVO, produce the following error when attempting to play them on the device. This video…
josephap
  • 2,075
  • 17
  • 24
9
votes
4 answers

Using YTPlayerView to play embedded YouTube video in iOS failed with restriction error

I want play embedded YouTube video in iOS app using YTPlayerView provided at https://developers.google.com/youtube/v3/guides/ios_youtube_helper When I tried to play this video with ID = "Ri7-vnrJD3k" (https://www.youtube.com/embed/Ri7-vnrJD3k), I…
Kevin Su
  • 93
  • 1
  • 3
7
votes
4 answers

Unable to embed YouTube video with YTPlayerView NSCocoaErrorDomain Code=258

Embedding YouTube videos with YTPlayerView doesn't work. It only gives me this error in the log: 2015-12-12 20:19:45.229 Wax-room[8545:3426005] Received error rendering template: Error Domain=NSCocoaErrorDomain Code=258 "The file name is…
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
7
votes
1 answer

Displaying YouTube Video ads with YouTube iFrame

I'm currently developing an iOS app that displays my YouTube videos, I am a YouTube partner and video ads show up when I play my videos inside my browser. However while using the official iOS YouTube Player it doesn't show any kind of video ads…
Jessica
  • 2,367
  • 2
  • 13
  • 14
6
votes
5 answers

How to Open YouTube app with YouTube id on a button click in iOS

I am building an app in which i will be having a UIButton named Watch Video on clicking the button the YouTube app/web should be opened with the respective youtube ID. I saw code to embed YouTube videos in iOS but i did not find anything of this…
Manju Basha
  • 665
  • 1
  • 9
  • 29
6
votes
2 answers

iOS app with YouTube v3 API and youtube-ios-player-helper can't autoplay videos

I am having a problem autoplaying videos with the youtube-ios-player-helper pod provided by Google/YouTube. Here is the relevant part of my app (iOS 10, Swift 3): a ChannelVideosViewController that displays video thumbnails as UIViews with an…
tech4242
  • 2,348
  • 2
  • 23
  • 33
6
votes
1 answer

Live streaming using YouTube on iOS

I've successfully streamed normal YouTube videos on iOS using the iOS YouTube helper, but live stream does not seem to work. I am not sure whether live streaming is even supported, but I could not find it in their docs. Any idea how to make it work…
6
votes
4 answers

YTPlayerView inside UITableViewCell

I have a YTPlayerView inside of my subclass of UITableViewCell. In my UIViewController I call [cell.youtubeView loadWithVideoId:f.videoID]; from my tableViewDelagate willDisplayCell method. The problem is that when I have many cells in my tableView…
pprochazka72
  • 552
  • 5
  • 17
5
votes
1 answer

YTPlayerView Play video in full screen ipad

I am using "YTPlayerView" to play video in iOS. When I am using this in iPhone it automatically play video in full screen but when I am using same thing in the iPad it does not switch to full screen. I also tried the below parameters but no…
Mitesh Khatri
  • 3,935
  • 4
  • 44
  • 67
4
votes
1 answer

UIWebView to WKWebView on youtube-ios-player-helper-swift

My app uses the framework youtube-is-player-helper-swift, found here: https://github.com/malkouz/youtube-ios-player-helper-swift It is an implementation of the original youtube-ios-player-helper, for Swift. It is working fine, but it is based on…
Neto
  • 61
  • 1
  • 7
4
votes
1 answer

YouTube - Download/Play Private Videos

My iOS app is going to have private and public videos, and users can purchase private ones. Right now I'm using YouTube and the youtube-ios-player-helper library for video hosting. Loading a public video is extremely…
rigdonmr
  • 2,662
  • 3
  • 26
  • 40
4
votes
1 answer

How to stop video playing in YTPlayerView inside UICollectionViewCell when scrolled?

I am using YTPlayerView inside UICollectionView(Horizontal scroll) with one item visible at a time on the screen. I have added a UIView inside custom cell and changed the class name to YTPlayerView in Identity inspector. For YTPlayerView I have…
SriKanth
  • 459
  • 7
  • 27
4
votes
1 answer

IOS 8 - After orientation change, Navigation bar is obscured by the status bar

I'm using SWRevealViewController and my app is locked on portrait orientation. On one of my view controllers I'm launching a youtube player using the YTPlayerView. When displaying the video I switch the orientation to landscape programmatically like…
Shlomi Schwartz
  • 8,693
  • 29
  • 109
  • 186
1
2 3 4 5 6 7