Skip to content

Commit

Permalink
get conformance tests from telecom server (#357) (#427)
Browse files Browse the repository at this point in the history
* get conformance tests from telecom server (#357)

* increase timeout to get test files
  • Loading branch information
aureliendavid authored Jan 23, 2025
1 parent c410ed6 commit c48605a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/qunit-helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Log.setLogLevel(Log.error);
var TIMEOUT_MS = 10000;
var mediaTestBaseUrl = './';
var TIMEOUT_MS = 30000;
var mediaTestBaseUrl = 'https://download.tsi.telecom-paristech.fr/gpac/mp4box.js/';

function getFileRange(url, start, end, callback) {
var xhr = new XMLHttpRequest();
Expand All @@ -12,7 +12,7 @@ function getFileRange(url, start, end, callback) {
xhr.setRequestHeader('Range', range);
}
Log.info("XHR", "Getting resource at "+url+(range ? " range: "+range : ""));
xhr.onreadystatechange = function (e) {
xhr.onreadystatechange = function (e) {
var buffer;
if ((xhr.status == 200 || xhr.status == 206 || xhr.status == 304 || xhr.status == 416) && xhr.readyState == this.DONE) {
buffer = xhr.response;
Expand Down

0 comments on commit c48605a

Please sign in to comment.