update components

This commit is contained in:
Luke Pulverenti 2016-03-02 12:05:35 -05:00
parent 5ca7a2ad34
commit a08bf4ec89
12 changed files with 25 additions and 26 deletions

View file

@ -1,6 +1,6 @@
{
"name": "hls.js",
"version": "0.5.7",
"version": "0.5.8",
"license": "Apache-2.0",
"description": "Media Source Extension - HLS library, by/for Dailymotion",
"homepage": "https://github.com/dailymotion/hls.js",
@ -16,14 +16,13 @@
"test",
"tests"
],
"_release": "0.5.7",
"_release": "0.5.8",
"_resolution": {
"type": "version",
"tag": "v0.5.7",
"commit": "448de529aa48dd7e32d639f265995c51f6dd22f5"
"tag": "v0.5.8",
"commit": "688cec5b83fc596fb91944ad4934ae84ee40abb9"
},
"_source": "git://github.com/dailymotion/hls.js.git",
"_target": "~0.5.7",
"_originalSource": "dailymotion/hls.js",
"_direct": true
"_originalSource": "dailymotion/hls.js"
}

View file

@ -1,6 +1,6 @@
{
"name": "hls.js",
"version": "0.5.7",
"version": "0.5.8",
"license": "Apache-2.0",
"description": "Media Source Extension - HLS library, by/for Dailymotion",
"homepage": "https://github.com/dailymotion/hls.js",

View file

@ -213,7 +213,7 @@ $(document).ready(function() {
$('#autoRecoverError').prop( "checked", autoRecoverError );
$('#enableWorker').prop( "checked", enableWorker );
$('#levelCapping').val(levelCapping);
$('#defaultAudioCodec').val(defaultAudioCodec);
$('#defaultAudioCodec').val(defaultAudioCodec || "undefined");
});
@ -937,7 +937,7 @@ function timeRangesToString(r) {
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam) {
return sParameterName[1];
return "undefined" == sParameterName[1] ? undefined : sParameterName[1];
}
}
return defaultValue;

View file

@ -8055,7 +8055,6 @@ var XhrLoader = function () {
this.timeout = timeout;
this.maxRetry = maxRetry;
this.retryDelay = retryDelay;
this.timeoutHandle = window.setTimeout(this.loadtimeout.bind(this), timeout);
this.loadInternal();
}
}, {
@ -8082,6 +8081,7 @@ var XhrLoader = function () {
if (this.xhrSetup) {
this.xhrSetup(xhr, this.url);
}
this.timeoutHandle = window.setTimeout(this.loadtimeout.bind(this), this.timeout);
xhr.send();
}
}, {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "hls.js",
"version": "0.5.7",
"version": "0.5.8",
"license": "Apache-2.0",
"description": "Media Source Extension - HLS library, by/for Dailymotion",
"homepage": "https://github.com/dailymotion/hls.js",

View file

@ -43,19 +43,18 @@ class XhrLoader {
this.timeout = timeout;
this.maxRetry = maxRetry;
this.retryDelay = retryDelay;
this.timeoutHandle = window.setTimeout(this.loadtimeout.bind(this), timeout);
this.loadInternal();
}
loadInternal() {
var xhr;
if (typeof XDomainRequest !== 'undefined') {
xhr = this.loader = new XDomainRequest();
} else {
xhr = this.loader = new XMLHttpRequest();
}
xhr.onloadend = this.loadend.bind(this);
xhr.onprogress = this.loadprogress.bind(this);
@ -69,6 +68,7 @@ class XhrLoader {
if (this.xhrSetup) {
this.xhrSetup(xhr, this.url);
}
this.timeoutHandle = window.setTimeout(this.loadtimeout.bind(this), this.timeout);
xhr.send();
}