Skip to content

Commit

Permalink
Add dist files for release 4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Jul 25, 2022
1 parent a621b4a commit 3d2b826
Show file tree
Hide file tree
Showing 24 changed files with 1,045 additions and 612 deletions.
739 changes: 475 additions & 264 deletions dist/dash.all.debug.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.all.debug.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/dash.all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.all.min.js.map

Large diffs are not rendered by default.

721 changes: 461 additions & 260 deletions dist/dash.mediaplayer.debug.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.mediaplayer.debug.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/dash.mediaplayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.mediaplayer.min.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/dash.mss.debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/dash.mss.debug.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.mss.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.mss.min.js.map

Large diffs are not rendered by default.

77 changes: 45 additions & 32 deletions dist/dash.offline.debug.js
Expand Up @@ -6588,6 +6588,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
* applyServiceDescription: true,
* applyProducerReferenceTime: true,
* eventControllerRefreshDelay: 100,
* enableManifestDurationMismatchFix: true,
* capabilities: {
* filterUnsupportedEssentialProperties: true,
* useMediaCapabilitiesApi: false
Expand Down Expand Up @@ -6980,7 +6981,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
*
* Valid values for catch up rate are in range 0-0.5 (0-50%).
*
* Set it to 0 to turn off live catch up feature.
* Set it to NaN to turn off live catch up feature.
*
* Note: Catch-up mechanism is only applied when playing low latency live streams.
* @property {number} [latencyThreshold=60]
Expand Down Expand Up @@ -7187,6 +7188,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
* @property {boolean} [applyProducerReferenceTime=true]
* Set to true if dash.js should use the parameters defined in ProducerReferenceTime elements in combination with ServiceDescription elements.
* @property {number} [eventControllerRefreshDelay=100]
* For multi-period streams, overwrite the manifest mediaPresentationDuration attribute with the sum of period durations if the manifest mediaPresentationDuration is greater than the sum of period durations
* @property {boolean} [enableManifestDurationMismatchFix=true]
* Defines the delay in milliseconds between two consecutive checks for events to be fired.
* @property {module:Settings~Metrics} metrics Metric settings
* @property {module:Settings~LiveDelay} delay Live Delay settings
Expand Down Expand Up @@ -7290,7 +7293,8 @@ function Settings() {
cacheInitSegments: false,
applyServiceDescription: true,
applyProducerReferenceTime: true,
eventControllerRefreshDelay: 150,
eventControllerRefreshDelay: 100,
enableManifestDurationMismatchFix: true,
capabilities: {
filterUnsupportedEssentialProperties: true,
useMediaCapabilitiesApi: false
Expand Down Expand Up @@ -7385,7 +7389,7 @@ function Settings() {
video: _streaming_constants_Constants__WEBPACK_IMPORTED_MODULE_3__["default"].TRACK_SWITCH_MODE_NEVER_REPLACE
},
selectionModeForInitialTrack: _streaming_constants_Constants__WEBPACK_IMPORTED_MODULE_3__["default"].TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY,
fragmentRequestTimeout: 10000,
fragmentRequestTimeout: 20000,
retryIntervals: (_retryIntervals = {}, _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].MPD_TYPE, 500), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].XLINK_EXPANSION_TYPE, 500), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].MEDIA_SEGMENT_TYPE, 1000), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].INIT_SEGMENT_TYPE, 1000), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].BITSTREAM_SWITCHING_SEGMENT_TYPE, 1000), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].INDEX_SEGMENT_TYPE, 1000), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].MSS_FRAGMENT_INFO_SEGMENT_TYPE, 1000), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].LICENSE, 1000), _defineProperty(_retryIntervals, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].OTHER_TYPE, 1000), _defineProperty(_retryIntervals, "lowLatencyReductionFactor", 10), _retryIntervals),
retryAttempts: (_retryAttempts = {}, _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].MPD_TYPE, 3), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].XLINK_EXPANSION_TYPE, 1), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].MEDIA_SEGMENT_TYPE, 3), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].INIT_SEGMENT_TYPE, 3), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].BITSTREAM_SWITCHING_SEGMENT_TYPE, 3), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].INDEX_SEGMENT_TYPE, 3), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].MSS_FRAGMENT_INFO_SEGMENT_TYPE, 3), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].LICENSE, 3), _defineProperty(_retryAttempts, _streaming_vo_metrics_HTTPRequest__WEBPACK_IMPORTED_MODULE_4__["HTTPRequest"].OTHER_TYPE, 3), _defineProperty(_retryAttempts, "lowLatencyMultiplyFactor", 5), _retryAttempts),
abr: {
Expand All @@ -7395,7 +7399,7 @@ function Settings() {
insufficientBufferRule: true,
switchHistoryRule: true,
droppedFramesRule: true,
abandonRequestsRule: false
abandonRequestsRule: true
},
bandwidthSafetyFactor: 0.9,
useDefaultABRRules: true,
Expand Down Expand Up @@ -10436,7 +10440,7 @@ function DashManifestModel() {
return events;
}

function getEventStreams(inbandStreams, representation) {
function getEventStreams(inbandStreams, representation, period) {
var eventStreams = [];
var i;
if (!inbandStreams) return eventStreams;
Expand All @@ -10461,12 +10465,13 @@ function DashManifestModel() {
}

eventStreams.push(eventStream);
eventStream.period = period;
}

return eventStreams;
}

function getEventStreamForAdaptationSet(manifest, adaptation) {
function getEventStreamForAdaptationSet(manifest, adaptation, period) {
var inbandStreams, periodArray, adaptationArray;

if (manifest && manifest.Period_asArray && adaptation && adaptation.period && isInteger(adaptation.period.index)) {
Expand All @@ -10481,10 +10486,10 @@ function DashManifestModel() {
}
}

return getEventStreams(inbandStreams, null);
return getEventStreams(inbandStreams, null, period);
}

function getEventStreamForRepresentation(manifest, representation) {
function getEventStreamForRepresentation(manifest, representation, period) {
var inbandStreams, periodArray, adaptationArray, representationArray;

if (manifest && manifest.Period_asArray && representation && representation.adaptation && representation.adaptation.period && isInteger(representation.adaptation.period.index)) {
Expand All @@ -10503,7 +10508,7 @@ function DashManifestModel() {
}
}

return getEventStreams(inbandStreams, representation);
return getEventStreams(inbandStreams, representation, period);
}

function getUTCTimingSources(manifest) {
Expand Down Expand Up @@ -12679,7 +12684,6 @@ function TimelineSegmentsGetter(config, isDynamic) {
var timeline = base.SegmentTimeline;
var list = base.SegmentURL_asArray;
var time = 0;
var scaledTime = 0;
var relativeIdx = -1;
var fragments, frag, i, len, j, repeat, fTimescale;
fTimescale = representation.timescale;
Expand All @@ -12697,26 +12701,24 @@ function TimelineSegmentsGetter(config, isDynamic) {

if (frag.hasOwnProperty('t')) {
time = frag.t;
scaledTime = time / fTimescale;
} // This is a special case: "A negative value of the @r attribute of the S element indicates that the duration indicated in @d attribute repeats until the start of the next S element, the end of the Period or until the
// next MPD update."


if (repeat < 0) {
var nextFrag = fragments[i + 1];
repeat = _calculateRepeatCountForNegativeR(representation, nextFrag, frag, fTimescale, scaledTime);
repeat = _calculateRepeatCountForNegativeR(representation, nextFrag, frag, fTimescale, time / fTimescale);
}

for (j = 0; j <= repeat && !breakIterator; j++) {
relativeIdx++;
breakIterator = iterFunc(time, scaledTime, base, list, frag, fTimescale, relativeIdx, i);
breakIterator = iterFunc(time, base, list, frag, fTimescale, relativeIdx, i);

if (breakIterator) {
representation.segmentDuration = frag.d / fTimescale;
}

time += frag.d;
scaledTime = time / fTimescale;
}
}
}
Expand Down Expand Up @@ -12758,7 +12760,7 @@ function TimelineSegmentsGetter(config, isDynamic) {

var segment = null;
var found = false;
iterateSegments(representation, function (time, scaledTime, base, list, frag, fTimescale, relativeIdx, i) {
iterateSegments(representation, function (time, base, list, frag, fTimescale, relativeIdx, i) {
if (found || lastSegmentTime < 0) {
var media = base.media;
var mediaRange = frag.mediaRange;
Expand All @@ -12770,9 +12772,9 @@ function TimelineSegmentsGetter(config, isDynamic) {

segment = Object(_SegmentsUtils__WEBPACK_IMPORTED_MODULE_2__["getTimeBasedSegment"])(timelineConverter, isDynamic, representation, time, frag.d, fTimescale, media, mediaRange, relativeIdx, frag.tManifest);
return true;
} else if (scaledTime >= lastSegmentTime - frag.d * 0.5 / fTimescale) {
} else if (time >= lastSegmentTime * fTimescale - frag.d * 0.5) {
// same logic, if deviation is
// 50% of segment duration, segment is found if scaledTime is greater than or equal to (startTime of previous segment - half of the previous segment duration)
// 50% of segment duration, segment is found if time is greater than or equal to (startTime of previous segment - half of the previous segment duration)
found = true;
}

Expand All @@ -12794,11 +12796,13 @@ function TimelineSegmentsGetter(config, isDynamic) {

var segment = null;
var requiredMediaTime = timelineConverter.calcMediaTimeFromPresentationTime(requestedTime, representation);
iterateSegments(representation, function (time, scaledTime, base, list, frag, fTimescale, relativeIdx, i) {
iterateSegments(representation, function (time, base, list, frag, fTimescale, relativeIdx, i) {
// In some cases when requiredMediaTime = actual end time of the last segment
// it is possible that this time a bit exceeds the declared end time of the last segment.
// in this case we still need to include the last segment in the segment list.
if (requiredMediaTime < scaledTime + frag.d / fTimescale && requiredMediaTime >= scaledTime) {
var scaledMediaTime = precisionRound(requiredMediaTime * fTimescale);

if (scaledMediaTime < time + frag.d && scaledMediaTime >= time) {
var media = base.media;
var mediaRange = frag.mediaRange;

Expand All @@ -12816,6 +12820,10 @@ function TimelineSegmentsGetter(config, isDynamic) {
return segment;
}

function precisionRound(number) {
return parseFloat(number.toPrecision(15));
}

instance = {
getSegmentByIndex: getSegmentByIndex,
getSegmentByTime: getSegmentByTime,
Expand Down Expand Up @@ -17614,9 +17622,9 @@ var MediaPlayerEvents = /*#__PURE__*/function (_EventsBase) {

_this.PLAYBACK_METADATA_LOADED = 'playbackMetaDataLoaded';
/**
* The media's metadata has finished loading; all attributes now
* contain as much useful information as they're going to.
* @event MediaPlayerEvents#PLAYBACK_METADATA_LOADED
* The event is fired when the frame at the current playback position of the media has finished loading;
* often the first frame
* @event MediaPlayerEvents#PLAYBACK_LOADED_DATA
*/

_this.PLAYBACK_LOADED_DATA = 'playbackLoadedData';
Expand Down Expand Up @@ -17680,6 +17688,12 @@ var MediaPlayerEvents = /*#__PURE__*/function (_EventsBase) {
*/

_this.PLAYBACK_TIME_UPDATED = 'playbackTimeUpdated';
/**
* Sent when the video element reports that the volume has changed
* @event MediaPlayerEvents#PLAYBACK_VOLUME_CHANGED
*/

_this.PLAYBACK_VOLUME_CHANGED = 'playbackVolumeChanged';
/**
* Sent when the media playback has stopped because of a temporary lack of data.
*
Expand Down Expand Up @@ -20262,17 +20276,23 @@ function FetchLoader(cfg) {
// are correctly generated
// Same structure as https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/
var calculatedThroughput = null;
var calculatedTime = null;

if (calculationMode === _constants_Constants__WEBPACK_IMPORTED_MODULE_2__["default"].ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING) {
calculatedThroughput = calculateThroughputByChunkData(startTimeData, endTimeData);

if (calculatedThroughput) {
calculatedTime = bytesReceived * 8 / calculatedThroughput;
}
} else if (calculationMode === _constants_Constants__WEBPACK_IMPORTED_MODULE_2__["default"].ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA) {
calculatedTime = calculateDownloadedTime(downloadedData, bytesReceived);
}

httpRequest.progress({
loaded: bytesReceived,
total: isNaN(totalBytes) ? bytesReceived : totalBytes,
lengthComputable: true,
time: calculateDownloadedTime(downloadedData, bytesReceived),
throughput: calculatedThroughput,
time: calculatedTime,
stream: true
});
}
Expand Down Expand Up @@ -20719,8 +20739,7 @@ function HTTPLoader(cfg) {
traces.push({
s: lastTraceTime,
d: event.time ? event.time : currentTime.getTime() - lastTraceTime.getTime(),
b: [event.loaded ? event.loaded - lastTraceReceivedCount : 0],
t: event.throughput
b: [event.loaded ? event.loaded - lastTraceReceivedCount : 0]
});
lastTraceTime = currentTime;
lastTraceReceivedCount = event.loaded;
Expand Down Expand Up @@ -26943,12 +26962,6 @@ function HTTPRequestTrace() {
*/

this.b = [];
/**
* Measurement throughput in kbits/s
* @public
*/

this._t = null;
};

HTTPRequest.GET = 'GET';
Expand Down
2 changes: 1 addition & 1 deletion dist/dash.offline.debug.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/dash.offline.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.offline.min.js.map

Large diffs are not rendered by default.

24 changes: 14 additions & 10 deletions dist/dash.protection.debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/dash.protection.debug.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.protection.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dash.protection.min.js.map

Large diffs are not rendered by default.

0 comments on commit 3d2b826

Please sign in to comment.