Stream 360 Video from Youtube in Unity - Get Direct Link from API - php

I'm using Unity3D 5.3.5 to build my application. I'm using PHP7 to generate JSON APIs. I was trying to stream 360 videos on my Android app. So, I bought Easy Movie Texture plugin from the asset store. Now, I can play 360 degrees videos both locally and from my server. No Problem There!
However, I cannot find a way to access the direct link in a legal manner.
For example, a Youtube link https://www.youtube.com/watch?v=xxxxxxx would take you to a youtube page. But I am looking for a way to access the direct link like this one
https://r3---sn-4g57knrz.googlevideo.com/videoplayback?sparams=dur,ei,expire,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,upn&id=o-AKELtsm___flI-ul3_x4DfHIoNWeQHQUOqjyrBF6eEDC&ip=27.34.106.98&ei=dcC3WJnWOsHKcrfjhLAI&requiressl=yes&pl=18&expire=1488458966&signature=2C08D077FAB84A30DFFE5472BD58539C44850FB2.73F0822B30B45C123589B6EB823612904BFEF35A&lmt=1488437275021563&beids=%5B9452307%5D&itag=22&key=cms1&mime=video%2Fmp4&ipbits=0&dur=118.166&source=youtube&ratebypass=yes&upn=yqEA5wXYUl4&cm2rm=sn-fapo3ox25a-3uhl7s,sn-25gz77z&req_id=11a107d03147a3ee&redirect_counter=2&cms_redirect=yes&mm=34&mn=sn-4g57knrz&ms=ltu&mt=1488439397&mv=m
I got the link through VLC Media Player's Network Stream feature. The problem with these links is that they expire and it isn't fully legal to access them as per this link:
how can get direct link from youtube video with youtube api v3
So, how on earth do I stream 360 degrees youtube video through my app in unity?

Related

YouTube Live Streaming API How to set custom thumbnails to Live Broadcast Object

I am creating YouTube live broadcasts using YouTube live streaming API (by using PHP API client library) everything is working fine my question is can we also set thumbnails to that broadcast object using API so that on events page or watch page it shows our custom image right now its shows channel default image? If yes then please let us know how we can achieve that.
I have noted we can change thumbnail through website but i want to change it using PHP API client.
Thanks,
Faraz

Detecting if the file from youtube is stream live

I want to detect if a given file on YouTube is broadcasted live. I have not found any information on this subject in the youtube api documentation. Is it possible at all?

Youtube LiveStreaming API

I want to create a website where each user can create/start live streaming.
But as I can see for now I can only create a stream for my own account. The one in which Youtube Data API is enabled. The one which secret keys are written in code. So I have no permissions to create live stream from someones account.
My question is if it is possible to do with Youtube API or not?
UPDATE
I found the way to add broadcast to user's account. But I can't understand how to tell user how to stream to created broadcast. He needs stream_key. (As I know...cause I use OBS software for windows and the only thing I need is stream_key to start streaming.
Never mind. I found out myself. If somebody has same question...
I need to choose Custom Streaming Server in OBS. And in this case I need URL and Stream Key. Which I can get from $streamsResponse['modelData']['cdn']['ingestionInfo']['strea‌​mName'] and $streamsResponse['modelData']['cdn']['ingestionInfo']['inges‌​tionAddress']
This may be a bit more advanced than using OBS, but you could use Wowza's GoCoder livestreaming SDK to build a mobile app. Your subscribers/users can generate a livestream from their mobile phones > to Wowza Media Server > final stream target destination configured for You Tube live.
It works directly with the You Tube Live API.

I need Youtube API3 + PHP Script for video uploading from website to directly into my youtube cahnnel

i am trying to develop web application for video upload from website to youtube channel.
I have already created Client ID, Client secret and API Key.
But i don't know how to use it, also found tutorial on online but any time i unable to complete this script.
anybody have ready-made script, so i can complete my project.
YouTube's developers site has PHP video upload sample code here.

How to create API for PHPmotion video cms site?

I am working on PHPmotion video cms website. I want to create API to access the videos links and its info for creating app for iPhone.
How can I create API for PHPmotion website to stream its videos in iPhone app. What is the best way to create API for iPhone? How can I do it?
you can use Json to fetch the video url from server and play its content in the shared appication.

Categories