Building http-streaming for use with Videojs

21 January 2021

Building http-streaming for use with Videojs

EDIT: This howto guide is outdated. Don't use it if you don't meet the requirements. Meaning that you need to be using an old version of videojs when this was not yet included in the default package.

This allows you to play HLS, DASH, and apparently future HTTP streaming protocols with Video.js, even where they're not natively supported. It supports Adaptive Bitrate Streaming.

This assumes you're doing this on a Linux system that has npm/nodejs installed. (if not, on Ubuntu use "sudo apt-get install node npm"). To build a copy of videojs-http-streaming run the following commands:

git clone https://github.com/videojs/http-streaming
cd http-streaming
npm i
npm run build

videojs-http-streaming will have created several files in a folder named "dist". Place these in the same folder as your videojs files and call it in your html file like this:

<script src="//yourdomain/js/videojs/videojs-http-streaming.js"></script>

Go to this site for more information on http-streaming: https://github.com/videojs/http-streaming

Table of Contents

Leave a Reply

Your email address will not be published. Required fields are marked *

Similar Content

23 January 2021
Introduction to the new how-to article in the Knowledge Base.

I wrote a new guide on setting up your own live-stream server. Mostly due to your requests. I took the opportunity to simplify and shorten the guide a bit. If you follow this guide step by step, and use your brain a tiny bit, you'll be fine. This guide has so far been tested on […]

× Read More ×
19 June 2025
Choosing the live-stream host that suits your needs

Discover how to choose the right live-stream host for your organization. Compare popular platforms like DaCast, Wowza, Vimeo, Kick, ReStream and IBM.

× Read More ×
Copyright © 2025. 
All rights reserved.