Playing YouTube audio stream in Third Party App - youtube-api

I'm developing an application in which I would like to play YouTube audio stream (without video). Does it violate any term of service of YouTube?
Thanks in advance.

Here's a link to the YouTube API terms of service:
https://developers.google.com/youtube/terms
The answer to your question is in section II, parts 8 and 9, stating it is prohibited to:
separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API;
promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API;
So it's a no-go, unfortunately.

Related

Does the YouTube Audio Library have an API?

I am trying to make an app to help YouTube content creators add royalty free music to their videos that they will be sharing on YouTube.
I am wondering if the YouTube API has been updated to provide a way for developers to access the music from the Audio Library.
I see that there were two similar questions asked over 2 years ago
List and download videos from youtube audio library in python
Use the YouTube API to retrieve music from the Audio Library
If not, is there any other royalty free music API that I could integrate into an App which content developers can share music to YouTube. It seems that with some royalty free music APIs (like Epidemic) you have to declare which social channels the music is being shared to, but what if you don't know where users of your app will be sharing the music to? Is there an API that has broad use like the YouTube audio library?
Thanks in advance for help.

Going live in Youtube by using embedded player in the application is a violation?

I am building an app which does live streaming to Youtube channel using an embedded player. So i want to know if it violates the policy of Youtube since I am using a different application to do live to the youtube Also, all the application users will stream to a single youtube channel, so any idea in how many live streams can take place at a time?
It was stated in the Broadcast and Stream documentation of the YouTube API that "only one event is live at any given time, and the video content for each broadcast is unique". To learn more about policy, you can read the YouTube API developer policies.

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

YouTube live on iOS?

The docs are a little hard to parse here. I was wondering if there was any way to
Stream YouTube live into an iOS app, without significant/any YouTube branding.
Stream from an iOS device as a broadcast stream for YouTube live.
My initial Googling turned up mixed responses. I was hoping to see an example of this if it's possible, or save myself some time if it's not.
Suppose I have a person on ATT next to a person on Verizon streaming content, and I want to make both appear as a single uninterrupted stream switching back and forth. Does YouTube or a library do to anything to facilitate this?
Streaming from an iOS device is no different than streaming from any other device. You would have to write an h264 encoder and RTMP packetizer, and send the video to your YouTube stream object's ingestionAddress. Outlining the details of the encoder beyond the above is too broad for Stack Overflow, but I highly recommend looking at the VideoCore iOS project.
As far as branding goes, the only way to play back YouTube content in an iOS app without breaking YouTube's terms of service is to play the video in a UIWebView or YouTube's iOS player helper library (which is just a web view with some playback interfaces).
There is no way to completely remove YouTube branding from the IFrame player. However, there are branding options you can toggle using the modestBranding flag on the player. See the IFrame docs here.

How to play just the audio of YouTube Video?

In my app I have played a youtube video by embedding it, but how can i only play the audio of the video? I tried using AVAudioPlayer and use the videos url as the file path but it didnt work, any help?
No it is not possible, only one workaround is just to use a hidden UIWebView and play in that.
Youtube forbids playing audio only! here is the message from youtube
Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to: "separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API"
-Kuan Yong, YouTube API Team

Resources