Reputation: 89
There is site which gets direct link to youtube server as for example if we visit the link
http://vimow.com/watch?v=TLM6e_slo7Q-Play-Xbox-in-a-WEB-BROWSER?---Inside-Gaming-Daily
now if we view the page source will notice that there is the following link in video src
my question is that how they are getting that link from youtube ?
i searched youtube api but did not find any solution.
Upvotes: 0
Views: 6378
Reputation: 16597
I've messaged you about your query. Check once. Since its not allowed as in terms of YouTube ToS, I can't disclose the method publically.
Upvotes: 2
Reputation: 2525
The link you provided is a link in Google Drive. It has nothing to do with YouTube.
On another hand, if you're looking to embed YouTube videos in your website, then this will help you: https://developers.google.com/youtube/youtube_player_demo
If you want to stream a video while it occurs ("live streaming" or live coverage), then you need to use a special server which supports live streaming:
Keep in mind that you need a videocam which supports streaming services, or you should link the videocam to your computer. It depends on the streaming service you're using.
Upvotes: 1
Reputation: 16761
These movies are placed on Google Drive, and the link comes from there. See:
For sharing details see:
https://support.google.com/drive/answer/2494822?hl=en&ref_topic=2525251
So, no, they're not from Youtube. There are API's for Google drive:
https://developers.google.com/drive/
For PHP see:
https://developers.google.com/drive/web/quickstart/quickstart-php
You'll have to familiarize yourself with this API before you can use it. The documentation by Google is far more than I could provide here.
Upvotes: 1
Reputation: 89
I have got the solution for this problem. Youtube videos are hosted in google's server. So we need to find the root link to the video and we can just stream the video using any HTML player. This is example of a link
So i hope after getting this link you can easily stream a youtube video. You can use youtube downloader which fetches the link using CURL. A good script on github
Using the script if you input the video id portion of any youtube video. Example: youtube(dot)com/watch?v=Fw-BM-Mqgeg
It uses curl to fetch the video link and u can use the link to stream video in your site.
Upvotes: 1
Reputation: 1495
got o youtube choose your video and click share after that click include (or something like that i can see it in french soo..) it will genereate a link like this one embed it in your page :
<iframe width="560" height="315" src="//www.youtube.com/embed/YoB8t0B4jx4" frameborder="0" allowfullscreen></iframe>
or you can just make it (the iframe adding the url of the video look at src of the iframe abouve
Upvotes: 1