1
I’m developing a video site, and these are stored on a windows server, currently using http://path.mp4 to fetch the video files for the HTML5 player, but then I wondered if HTTP is appropriate for this type of use, there is some restriction?
- Currently videos take on average 5 to 15 seconds to start, many requests to the same video may take longer?
- Is there any other protocol that serves better for this function?
Depends on how you use it. If you are going to use HTTP, the least you can expect is to use a server that supports ranges, so that you can jump to the middle of the video without loading the whole start first. You have too many variables to tell you what’s best or best for your case. This delay to start may be related to the fact that the system is not streaming, and the video is not closed in any way that allows progressive load, or another factor of the same type requiring the complete download before play. As I commented, many factors involved.
– Bacco
These are videos ranging from 200 to 400mb, how can I make the video to be streamed as a stream? I’ve read that if you move the metadata to the top the video loads faster in the player, but I didn’t find anything concrete
– Leo Letto
You need to study about the forms of compacting, the types of container and encoding, it’s something that escapes a little of our scope. Other than that, then you need to serve in order to be able to stream, which is another subject that is independent of the video closure. And it depends on the web server used too.
– Bacco
Note that HTTP is for really low-use cases, if you’re going to do something like a more complex, more public video server, you need to really think about pure streaming protocols (which I believe is one of the elements of your question).
– Bacco
Whenever I look about these protocols for live stream, or comes HLS, or RTSP, in the case of what I read RTSP seems to work well with HTML5, I will delve deeper into some forums in English because Br does not have much on this type of content
– Leo Letto
@Bacco using php to stream files would be a good method ?
– Leo Letto
It will simply be an extra layer in the middle stressing the server.
– Bacco
I opened another question focused more on this issue of live by PHP, to better discuss how this method works http://answall.com/questions/170599/vantagens-e-disadvantages-de-usar-php-v%C3%Addeo-stream? noredirect=1#comment351640_170599
– Leo Letto