But what about streaming live video on your website, without relying on an external source? This is where the HTTP Live Streaming (HLS) can help you.
All you need is an access to your hosting server. FTP is quite common and can be used for HLS. I've done a few experiments with ScreenStudio and I got really good results.
- Create a folder on your hosting HTTP server to receive the video stream
- In ScreenStudio, enter the full URL address to upload the video stream to the selected folder
- FTP Url looks like this: ftp://username:firstname.lastname@example.org/public_html/live...
- Create an HTML file that will be used to view the video stream.
The HTML viewer file must have this code so the video stream will work on almost all computers and mobiles devices:
<video id="video" width=100% height=430 src="stream.m3u8" autoplay>
var video = document.getElementById('video');
var hls = new Hls();
The scripting part is used for PC browsers not supporting HLS natively like mobile devices do.
When your stream starts, there will be a slight delay for about 10 seconds. ScreenStudio will update the video files on your FTP site and viewers will be able to watch your live stream.
To download ScreenStudio: http://screenstudio.crombz.com
Here's a video I made when testing HLS with ScreenStudio:
As you can see in the video, I was even able to AirPlay the video stream from my iPad to my AppleTV, letting my Ubuntu PC display it's desktop directly on the AppleTV. Cool ;) !