Answer the question
In order to leave comments, you need to log in
Downloading videos and watching them on a site without YouTube - how?
On the site, you need to implement the download of video clips and their viewing. Previously, we used the scheme: upload to YouTube, insert the player code on the site. However, YouTube's standard restrictions do not allow us to do what we want, or maybe we don't know this service well?
Question: How to organize the download of video clips and their viewing on the site? Video clips can be of absolutely different resolutions and formats. Sometimes it is required to cut pieces in them - i.e. it would be nice to be able to do the simplest online-editing of a video clip in terms of cropping.
Maybe there are similar YouTube even paid services for such tasks with their own API?
Or would you recommend some ready-made kits (designs, engines) for implementing such functionality on your site?
Answer the question
In order to leave comments, you need to log in
To view mediaelementjs.com ( used for example in wordpress )
Crop and convert on regular hosting will not work, you need ffmpeg.
Through youtube will be too long.
And what's the problem? Upload to the site via <input type="file">, process on the side of the site, display via the <video> tag?
YouTube runs entirely on the HTTP(S) protocol.
Therefore, if the official API does not allow you to do what you have planned, then you can take a sniffer like Fiddler, track those GET / POST requests that the YouTube front-end sends to the back-end when uploading a video, and simulate their sending in PHP to get the same what the front-end would get.
Not to say that it was easy in the case of Google services. Google takes quantity. This is their signature Hindu style. There are stupidly too many things to take into account and simulate: a lot of parameters, and requests, and code. A lot of time and effort will have to be spent. However, it is 100% possible.
The video is streaming there, it is loaded in pieces, but you can send such a request so that everything is loaded at once.
It is not clear from the question what kind of standard YouTube restrictions interfere. But in any case, not only YouTube. Type in the search engine "video hosting" and you will see a lot of other possibilities.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question