Mpeg-dash code integration with videoJs player

adaptive-bitratempeg-dashvideo streamingvideo.js

I am using videoJs player to play videos , i need to know is there any support for mpeg-dash in videoJS ? ..I referred this link http://msdnrss.thecoderblogs.com/2014/01/mpeg-dash-tutorial-embedding-an-adaptive-streaming-video-within-your-html5-application-2/ to play mpeg-dash video .

In code

 videojs(this.get('element')); //here this.get('element') refers to video object
 var url= .mpd manifest file
 var context = new Dash.di.DashContext();
 var player = new MediaPlayer(context);
 player.startup();
 player.attachView(this.get('element')); //
 player.attachSource(url);

Now mpeg-dash video will play but videoJS and Dash is not linked with each other ,
so i need to know , how i can bind dash to videoJs player ?

Best Answer

You might want to check out this link: https://github.com/videojs/video.js/issues/752 which says that you'll need to specify a type attribute on the video element (specifically type="application/dash+xml"). Also I'm not sure if Safari supports DASH yet (or ever will) but the latest versions of Chrome/Firefox should.

Related Topic