Skip to content

Commit

Permalink
update builds
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Jun 27, 2017
1 parent da284ee commit b7c3d99
Show file tree
Hide file tree
Showing 2 changed files with 377 additions and 375 deletions.
40 changes: 21 additions & 19 deletions dist/rx-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -3330,7 +3330,8 @@ var BufferedRanges = function () {
assert(end - start > 0, 4);
}
this.intersect(new BufferedRanges([new Range(0, start, 0), // from 0 to start
new Range(end, Infinity, 0)]));
new Range(end, Infinity, 0)]) // from end to Infinity
);
};

/**
Expand Down Expand Up @@ -6567,10 +6568,10 @@ function createTimingsSampler(video, _ref) {
function seekingsSampler(timingsSampling) {
return timingsSampling.filter(function (t) {
return t.name == "seeking" && (t.gap === Infinity || t.gap < -SEEK_GAP);
}
})
// skip the first seeking event generated by the set of the
// initial seeking time in the video
).skip(1).startWith(true);
.skip(1).startWith(true);
}

function toWallClockTime(ts, manifest) {
Expand Down Expand Up @@ -8902,14 +8903,14 @@ function ema(a) {
/* harmony default export */ __webpack_exports__["a"] = (function (metrics, options) {
return metrics.map(function (metric) {
return metric.value.response;
}
})
// do not take into account small chunks < 2KB. filters out init
// segments and small manifests in particular, but keep loading errors (timeout).
).filter(function (response) {
.filter(function (response) {
return !response || response.size > 2000;
}
})
// converts response metadata in bits-per-seconds
).map(function (response) {
.map(function (response) {
return response ? response.size / response.duration * 8000 : 0;
}).scan(ema(options.alpha));
});
Expand Down Expand Up @@ -9028,18 +9029,19 @@ function getMaxUsefulBitrateforWidth(representations, width) {
var sortedRepsByWidth = representations.sort(function (a, b) {
return a.width - b.width;
});
var maxWidth = sortedRepsByWidth.find(function (r) {
var firstSuperiorRepresentation = sortedRepsByWidth.find(function (r) {
return r.width >= width;
});

if (maxWidth) {
if (firstSuperiorRepresentation) {
var filteredAdaptations = representations.filter(function (r) {
return r.width <= maxWidth;
return r.width <= firstSuperiorRepresentation.width;
});
if (filteredAdaptations.length) {
return filteredAdaptations[filteredAdaptations.length - 1].bitrate;
} else {
return representations[0];
var firstRepresentation = representations[0];
return firstRepresentation && firstRepresentation.bitrate || 0;
}
}

Expand Down Expand Up @@ -10082,8 +10084,8 @@ var pixelRatio = window.devicePixelRatio || 1;
* @returns {Object}
*/
function DeviceEvents(videoElement) {
var isVisible = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__compat__["u" /* visibilityChange */]) // emit false when visible
().filter(function (x) {
var isVisible = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__compat__["u" /* visibilityChange */])() // emit false when visible
.filter(function (x) {
return x === false;
});

Expand Down Expand Up @@ -10703,7 +10705,7 @@ var Player = function (_EventEmitter) {
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
videoElement.preload = "auto";

_this.version = /*PLAYER_VERSION*/"2.2.0";
_this.version = /*PLAYER_VERSION*/"2.2.1";
_this.video = videoElement;

// fullscreen change subscription.
Expand Down Expand Up @@ -13406,9 +13408,9 @@ function temporalMediaFragmentParser(value) {
var end = components[1] ? components[1] : "";
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_assert__["a" /* default */])((start || end) && (!start || end || value.indexOf(",") === -1), errMessage);

start = start.replace(/^smpte(-25|-30|-30-drop)?:/, "" // remove smpte prefix
).replace(/^npt[:=]/, "" // remove npt prefix
).replace("clock:", ""); // remove clock prefix
start = start.replace(/^smpte(-25|-30|-30-drop)?:/, "") // remove smpte prefix
.replace(/^npt[:=]/, "") // remove npt prefix
.replace("clock:", ""); // remove clock prefix

// Normal Play Time, as specified in the RFC2326
// Examples:
Expand Down Expand Up @@ -16594,8 +16596,8 @@ var atoms = {
[1, 0], 10, // we assume volume = 100%;
[0, 1], 14, // default matrix
[0, 1], 14, // default matrix
[64, 0, 0, 0], 26, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__utils_bytes__["m" /* itobe2 */])(trackId + 1 // next trackId (=trackId + 1);
)));
[64, 0, 0, 0], 26, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__utils_bytes__["m" /* itobe2 */])(trackId + 1) // next trackId (=trackId + 1);
));
},


Expand Down
Loading

0 comments on commit b7c3d99

Please sign in to comment.