DASH plugin (beta)


See the Pen Videogular – DASH plugin by Two Fucking Developers (@2fdevs) on CodePen.


Dynamic Adaptive Streaming over HTTP (DASH) is an adaptive streaming protocol. This is a new and promising open technology that allows users to have video streaming and live streamings that can adapt to their screens and bandwidth on-the-fly.

DASH is built over an awesome HTML5 spec that is called Media Source Extensions API and is going to be a revolution in HTML5 video in the upcoming years.

If you’re familiar with RTMP SMIL files or HLS Media Segment files you will see that DASH MPD files are very similar. Also, if you want to create your own DASH server you can take a look to this Firefox’s tutorial, it’s pretty easy to do.

Videogular’s DASH plugin is built with dash.js, an open source project leaded by companies like Akamai. This plugin is still in beta and currently it only works with Chrome.

To use DASH plugin you only need to add vg-dash attribute to vg-media element. Now that you have added DASH support to Videogular just set a .mpd file as a source (without $sce.trustAsResourceUrl()) and you’re done. You can try a few streams from dash.js JS player website.


You can install with bower:

bower install videogular-dash