I would like to play youtube videos in an IOS app using youtube API. Can a video's uploader block the video from being played in an IOS app?
Yes, youtube video can be blocked from being played in IOS apps at the discretion of the content uploader.
https://youtube-eng.googleblog.com/2011/12/understanding-playback-restrictions_28.html
Related
I am working on a tvOS application where I have to play videos from a company's own YouTube channel. As tvOS has no UIWebKit framework, and YouTube doesn't have any SDK's for tvOS, the only choice I am left with is to get access to MP4 format videos of the YouTube videos. YouTube gives access to download your own videos from your own channel but it can only be done manually. Is there any way to get access to YouTube videos using tvOS or download your own videos using code without breaching any privacy policies?
I think that you should not download MP4 files from the YouTube. There are a lot of abilities how to play YouTube videos in tvOS applications, you can find some of them here: How to play YouTube content on tvOS .
I have read this document on how to play youtube video in iOS app. But for some video I am getting error "Restricted Video.
This app is playing restricted video also.'Musify Video Tube For YouTube - Free Music Player and Streamer'
Which player or SDK or api to play restricted video?
Finally got solution with this https://github.com/0xced/XCDYouTubeKit.
*Yes its against terms and condition of youtube.
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 on iOS (without breaching ToS)?
The playback of YouTube Live Events is supported by the YTPlayerView iOS helper classes. The player will treat the Live Event video just like a regular YouTube video (as the iFrame player should), and your video should play back no problem with the "Live Broadcast" message replacing the scrubber of the player like so:
The only difference I have noticed is that the video will return an "auto" quality value. I have submitted a patch to handle this case which has been merged in to the official repo here.
Note! the problem occured on iOS devices like the iPad
How can I load youtube videos using the Youtube Player API and disable autoplay?
and also be able to stop the video
Problems:
loadVideoById the video starts rights away.
cueVideoById the video load but does not show the thumbnail
Example code;
http://dl.dropbox.com/u/13780885/loadvideobyid/autoplay.html
Youtube Player API documentation:
https://developers.google.com/youtube/iframe_api_reference
I want to play video in streaming by using iOS GoogleDrive SDK.
GoogleDrive App in iOS app store can play video in streaming by YouTube.
I have seen this post:
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html
According to the post, the key of play video is the YouTube source link.
The link lists GoogleDrive's all of file properties:
https://developers.google.com/drive/v2/reference/files
All file's properties were tried to instead of the YouTube source link, but that doesn't work.
Could anyone tell me how to get the correct link to play video by YouTube?
Thank you very much.
You can the URL in the embedLink field to get a streaming player for the video.