How it works

With Nginx Secure Links for HLS playlists you can encode the source into multiple files at different data rates and divide them into short chunks, usually between 5-10 seconds long and you can spread them across multiple servers or through a CDN provider that offers Secure Links. This way you restrict access and hot linking on your streams.

Let’s say you want to stream your webcam on internet for a large audience, but how can you do this with only one pc or server? You will probably waste your bandwidth really fast. Based on your stream quality is almost impossible to support hundreds concurrent clients at once. To solve this we offer a simple load balancer written in NodeJS which you can find it in this gist. If you want to build your own software load balancer, please make sure you return the same response format like in the above example. Below you can generate a json file that works with our apps and the above load balancer.

Notes

  • Before we generate the JSON file, we encrypt your secure link password.
  • Mobile client calls balance URL (if used in the configuration json file) for each stream in the stream list.
  • There is no limit on how many streams you can add in the configuration file.
  • We don’t offer hosting for the json configuration file. You will have to host it on your website and share the link with your users.
  • You are fully responsible for the content of your streams.
  • Mobile client calls balance URL (if used in the configuration json file) for each stream in the stream list.

For the sample configuration files we used

Generate JSON file

Fill all the fields with info on how we should connect to your server and then list the name and uri of every video or live stream that you wan to distribute.