I have a few videos i want to stream on my website and for that i want to rent my own VPS / Dedicated server.
Because my videos will be about 20/30 min long / 300MB each i want to be prepared for a lot of views/traffic.
I think the best thing i could do is rent a VPS and maybe later on a dedicated server to ensure fast speeds and no problem handling all my traffic. Though i am not sure how to set this up.
I got my website running via a host. On my website users can watch the videos. Of course i can't just put them on my web host so that's where the vps / dedicated comes into play.
I don't have any experience with VPS other than a windows VPS / Directadmin pre-installed.
Now i want to know what the best set-up should be so that i can:
php stream ?! it's not correct. You don't neet use php to send your video stream. And you can play videos hosting on different server without problems.
You must use dedicated server + nginx (not apache because apache isn't very good to send file/video stream)
My advice is:
Set on your player direct link of your video.
<video width="1028" height="720" controls><source src="http://fileServerDomain.com/path/video/myvideo.mp4" type="video/mp4"> </video>