ytplayerview

Playback rate not working on ios YouTube YTPlayerView

纵然是瞬间 提交于 2019-12-11 16:27:42
问题 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 attempt one of these rates, during playback in my App using, say: setPlaybackRate(0.5), nothing changes (I've tried this both pre, and during playback) Calling availablePlaybackRates() returns nil (I've tried this both pre, and during playback) I have

Want next and previous button in my YTPlayerView while locked iPhone

别来无恙 提交于 2019-12-11 11:14:35
问题 I want next and previous button in my YTPlayerView while locked iPhone iOS, actually when I use next and previous button in simulator its works well, but when I press next button while iPhone is locked then its crashes, I am using YTPlayerView in my app. My code in app delegate is NSError *setCategoryError = nil; [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &setCategoryError]; [MPRemoteCommandCenter sharedCommandCenter].playCommand.enabled = YES; /

Change Playback Quality of YTPlayerView

你说的曾经没有我的故事 提交于 2019-12-11 03:45:30
问题 I am having a problem with quality for embedded YouTube videos in my app. I am using YTPlayerView to embed videos from YouTube. My app has 2 options: option 1 is the user can watch video with 360p quality and option 2 is 720p quality. Are these two options possible? If yes, can I customize the video playback quality of the YTPlayerView ? I tried to change the quality this way, but it does not appear to work: [self.playerView setPlaybackQuality:kYTPlaybackQualitySmall]; 回答1: I assume you are

Start YTPlayerView in full screen on iPad

懵懂的女人 提交于 2019-12-06 17:50:27
I am using YTPlayerView iOS class which is provided by Youtube and you can check it here . The problem is the following: on iPhone the video automatically starts in full screen while on iPad it doesn't, and I need to start it in full screen by default. For anyone who is facing this problem, I solved it by dropping this class and using XCDYoutubeKit, it solved my issue but I had to drop the separate UI where I used my player. https://github.com/0xced/XCDYouTubeKit It's also available through cocoapods Yestay Muratov Add this code, so on iPhone it will not start to play on full screen: var

Playback restricted on iOS for VEVO videos from YouTube API

只愿长相守 提交于 2019-12-05 17:22:18
问题 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 contains content from VEVO. It is restricted from playback on certain sites. This should not occur, since apps like Flipboard and Rockpack also seem to be using a UIWebView, and are able to play videos from VEVO and other sources. What could I be doing

Multiple UIWebView WebCore Crashes

时光怂恿深爱的人放手 提交于 2019-12-04 10:27:56
问题 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 happening on iOS 12 devices. See below for details of some of the crashes: 1. VideoFullscreenControllerContext::rateChanged(bool, float) Thread 0 name: Thread 0 Crashed: 0 WebCore 0x000000024227c270 VideoFullscreenControllerContext::rateChanged(bool,

Multiple UIWebView WebCore Crashes

╄→尐↘猪︶ㄣ 提交于 2019-12-03 05:47:32
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 happening on iOS 12 devices. See below for details of some of the crashes: 1. VideoFullscreenControllerContext::rateChanged(bool, float) Thread 0 name: Thread 0 Crashed: 0 WebCore 0x000000024227c270 VideoFullscreenControllerContext::rateChanged(bool, float) + 308 (WebVideoFullscreenControllerAVKit.mm:396) 1 WebCore 0x000000024227c164

Playing YouTubePlayer Sound in Background Swift

蹲街弑〆低调 提交于 2019-12-01 11:52:43
I'm using the YouTubeSDK to play YouTube videos in my app found here: https://github.com/gilesvangruisen/Swift-YouTube-Player However, when the user presses home I want the sound to keep playing in the background. https://github.com/youtube/youtube-ios-player-helper/issues/38 I'm currently trying this in the App Delegate (awful conversion) in the didFinishLaunchingWithOptions : let sessionEror:NSError? do { let playBG = try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, withOptions: .DefaultToSpeaker) } catch let error as NSError { print("ERROR") } And this is in

Playing YouTubePlayer Sound in Background Swift

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 10:40:52
问题 I'm using the YouTubeSDK to play YouTube videos in my app found here: https://github.com/gilesvangruisen/Swift-YouTube-Player However, when the user presses home I want the sound to keep playing in the background. https://github.com/youtube/youtube-ios-player-helper/issues/38 I'm currently trying this in the App Delegate (awful conversion) in the didFinishLaunchingWithOptions : let sessionEror:NSError? do { let playBG = try AVAudioSession.sharedInstance().setCategory

YTPlayerView inside UITableViewCell

风流意气都作罢 提交于 2019-12-01 02:54:18
问题 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 some of them stay white instead of the YouTube content! Youtube API recommends when reusing the YTPlayerView to load the content by calling [cell.youtubeView cueVideoById:f.videoID startSeconds:0 suggestedQuality:kYTPlaybackQualityHighRes]; instead