ytplayerview

Customizing YouTube Player in iOS

折月煮酒 提交于 2021-02-07 18:39:25
问题 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 alter the player. Does any one know of a way to accomplish this? 回答1: The player controls can be given in the dictionary described below and can have the values 0,1,2 check this link for the control functionality https://developers.google.com

Customizing YouTube Player in iOS

☆樱花仙子☆ 提交于 2021-02-07 18:36:50
问题 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 alter the player. Does any one know of a way to accomplish this? 回答1: The player controls can be given in the dictionary described below and can have the values 0,1,2 check this link for the control functionality https://developers.google.com

Displaying YouTube Video ads with YouTube iFrame

只谈情不闲聊 提交于 2019-12-28 06:46:12
问题 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 whatsoever, does anyone know how to display video ads or get this fixed? The YouTube Player Library I'm using https://github.com/youtube/youtube-ios-player-helper Here are the parameters I'm using NSDictionary *playerVars = @{ @"controls" : @1, @

YouTube Live API Stream Status and Quality Callback

丶灬走出姿态 提交于 2019-12-24 05:12:58
问题 In the "Live Control Room" of a YouTube Live broadcast, I can see a "Stream Status" view which shows me details of the video being sent to YouTube's RTMP endpoint. I hit the liveStreams endpoint to get the "status" of the stream, but that only returns active , meaning that the video stream is being successfully sent to YouTube's RTMP endpoint, but no information about video data or quality. Is this information exposed somewhere in the API? Can I also see additional details about the video,

YTPlayerView load a list of videos

混江龙づ霸主 提交于 2019-12-24 02:04:02
问题 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 ID: someid)". I am using the following code for playing a single video @IBOutlet weak var playerView: YTPlayerView! // story board connection let params = ["controls" : 2, "playsinline" : 1, "autohide" :1, "showinfo" : 0, "modestbranding" : 0, "cc

iOS YTPlayerView force video quality

十年热恋 提交于 2019-12-24 00:26:08
问题 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 how, I could not get it to play in 720P or 1080P. I am certain that these qualities are available, it's just the YTPlayerView forcing the quality based on the video player height. Because this is a library and not direct iframe embed, I cannot use

Start YTPlayerView in full screen on iPad

与世无争的帅哥 提交于 2019-12-23 02:19:13
问题 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. 回答1: 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

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

≡放荡痞女 提交于 2019-12-21 04:04:21
问题 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 still working I can see the Pod in my workspace, and I can even select YTPlayerView as Class for my UIView in Storyboard But when it comes to adding the IBOutlet it doesn't recognize the YTPlayerView Class anymore?! Shouldn't it be impossible to even

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

人走茶凉 提交于 2019-12-21 04:04:18
问题 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 still working I can see the Pod in my workspace, and I can even select YTPlayerView as Class for my UIView in Storyboard But when it comes to adding the IBOutlet it doesn't recognize the YTPlayerView Class anymore?! Shouldn't it be impossible to even

Get a current frame from Youtube YTPlayerView

风流意气都作罢 提交于 2019-12-12 04:55:35
问题 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 Youtube logo on it, without the actual video. I tried to snapshot the view's presentationLayer but then I get the BAD_ACCESS error. I heard it has something to do with CSS/HTML5 inside the UIWebView (which is used to display the youtube player).