Knowledge Base

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