Play YouTube videos with tvOS without breaching privacy policy - youtube

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 .

Related

Can youtube uploader block video from being played in IOS app

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

Is it allowed to include Youtube Video in iOS app

I want to include some youtube videos in my app, is it allowed to add youtube videos by apple? I am not sure if apple will reject the app or not, if i add any youtube video.
I know that for images, we can't add any image or else your app will be rejected by Apple. So for image i use googled images which are free to use. Is there any restriction for youtube videos as well?
Thanks,
Richa
Yes we can allow the YouTube Video into iOS app.
Because YouTube-provides native iOS video player to play the content
that you retrieve. You can access the documentation for the various
API endpoints offered, including ones not covered in this article, at
https://developers.google.com/youtube/.
Integrating YouTube
My App got reject from Apple Review stating this (AUG/2020)
Guideline 5.2.3 - Legal
I'm using the youtube data api v3 to get the popular videos by country and display as a list on the app (App built using Flutter). each list item displaying only the title, description, thumbnail image and upload date. when click on list item to stream the video I launched in youtube app. (no steaming in my app). but apple reject my app stating above.
check this on apple developer forum

Chromecast support for youtube videos played via the youtube player API

When I watch videos in the official youtube app on my Android device, I see the familiar cast icon in the toolbar, which sends the playing video to my chromecast.
I want to write my own app that uses the official youtube player API for Android. Playing with the Android samples (https://developers.google.com/youtube/android/player/sample-applications), I've noticed that the chromecast icon is missing.
What is the best way to add chromecast support to my app which uses YoutubePlayerView or YoutubePlayerFragment to play videos?
Well, if you want to use chromecast for the YouTube API, then you can start by knowing how to integrate Cast in an Android App. You will learn here the basic information that you need to know. Also, check this YouTube Android Player API to know how it is works.
I found here a demo that shows how to integrate YouTube APIs with Chromecast. It is designed for developers who are learning about the Chromecast SDK or YouTube APIs, or for those wishing to run a code lab on various Google technologies.

react-native-video play Vimeo and YouTube

I wonder if it is at all possible to play Vimeo and YouTube via the React Native component react-native-video. My research so far points to this being virtually impossible, because react-native-video needs a direct reference to a file (or a stream?) and these references are hard/difficult to obtain for YouTube and Vimeo?
Is there any way to get react-native-video working with Vimeo & YouTube?
react-native-video will work with Vimeo, if you subscribe to Vimeo Pro.
Vimeo Pro offers the ability to use your video own third party player, which lets you get the url for your video in 360p, 540p, 720p, or 1080p specifically or as an HTTP Live Streaming url which can choose the correct resolution/bitrate for the user's connection. react-native-video work with any of these formats!
I know a github project which is a Youtube component for react-native. Check it out, maybe it can help you ;)
Here you have an other project for Vimeo videos

How to play video in streaming by using iOS GoogleDrive SDK?

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.

Resources