| author | Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> |
| Fri, 03 Mar 2017 12:23:35 +0100 | |
| changeset 1386 | af05cd44d393 |
| parent 1368 | 0ae5202742bd |
| child 1511 | 25731d245eda |
| permissions | -rw-r--r-- |
|
1386
af05cd44d393
modify sync info
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1368
diff
changeset
|
1 |
/*! videojs-contrib-dash - v2.2.0 - 2016-05-04 |
|
1368
0ae5202742bd
change flash to dash
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2016 Brightcove */ |
|
1386
af05cd44d393
modify sync info
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
1368
diff
changeset
|
3 |
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(a){"undefined"!=typeof window?b.exports=window:"undefined"!=typeof a?b.exports=a:"undefined"!=typeof self?b.exports=self:b.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(a,b,c){(function(c){"use strict";function d(a,b){var c;this.tech_=b,this.el_=b.el(),this.elParent_=this.el_.parentNode,a.src&&(b.isReady_=!1,d.updateSourceData&&(a=d.updateSourceData(a)),c=a.src,this.keySystemOptions_=d.buildDashJSProtData(a.keySystemOptions),d.context_=d.context_||{},this.mediaPlayer_=g.MediaPlayer(d.context_).create(),d.useVideoJSDebug&&d.useVideoJSDebug(this.mediaPlayer_),this.mediaPlayer_.initialize(),this.mediaPlayer_.attachView(this.el_),this.mediaPlayer_.setAutoPlay(!1),this.mediaPlayer_.setProtectionData(this.keySystemOptions_),this.mediaPlayer_.attachSource(c),this.tech_.triggerReady())}var e=a("global/window"),f="undefined"!=typeof window?window.videojs:"undefined"!=typeof c?c.videojs:null,g="undefined"!=typeof window?window.dashjs:"undefined"!=typeof c?c.dashjs:null,h=function(a){return"[object Array]"===Object.prototype.toString.call(a)};d.buildDashJSProtData=function(a){var b,c,d,e={};if(!a||!h(a))return e;for(d=0;d<a.length;d++)b=a[d],c=f.mergeOptions({},b.options),c.licenseUrl&&(c.serverURL=c.licenseUrl,delete c.licenseUrl),e[b.name]=c;return e},d.prototype.resetSrc_=function(a){this.el_&&(this.el_.src="",this.el_.setMediaKeys?this.el_.setMediaKeys(null).then(a,a):a())},d.prototype.dispose=function(){this.mediaPlayer_&&this.mediaPlayer_.reset(),this.resetSrc_(function(){})},f.DashSourceHandler=function(){return{canHandleSource:function(a){var b=/\.mpd/i;return f.DashSourceHandler.canPlayType(a.type)?"probably":b.test(a.src)?"maybe":""},handleSource:function(a,b){return new d(a,b)},canPlayType:function(a){return f.DashSourceHandler.canPlayType(a)}}},f.DashSourceHandler.canPlayType=function(a){var b=/^application\/dash\+xml/i;return b.test(a)?"probably":""},e.MediaSource&&f.getComponent("Html5").registerSourceHandler(f.DashSourceHandler(),0),f.Html5DashJS=d,b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"global/window":1}]},{},[2]); |