From 566c05983233f935b2d537b4f9f682e464aab27c Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 29 Jun 2018 00:38:11 +1000 Subject: 3.3.16 --- dist/plyr.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dist/plyr.js') diff --git a/dist/plyr.js b/dist/plyr.js index f7f5529f..fe727a7c 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -1932,6 +1932,16 @@ typeof navigator === "object" && (function (global, factory) { return; } + // If duration is the 2**32 (shaka), Infinity (HLS), DASH-IF (Number.MAX_SAFE_INTEGER || Number.MAX_VALUE) indicating live we hide the currentTime and progressbar. + // https://github.com/video-dev/hls.js/blob/5820d29d3c4c8a46e8b75f1e3afa3e68c1a9a2db/src/controller/buffer-controller.js#L415 + // https://github.com/google/shaka-player/blob/4d889054631f4e1cf0fbd80ddd2b71887c02e232/lib/media/streaming_engine.js#L1062 + // https://github.com/Dash-Industry-Forum/dash.js/blob/69859f51b969645b234666800d4cb596d89c602d/src/dash/models/DashManifestModel.js#L338 + if (this.duration >= Math.pow(2, 32)) { + toggleHidden(this.elements.display.currentTime, true); + toggleHidden(this.elements.progress, true); + return; + } + // Update ARIA values if (is.element(this.elements.inputs.seek)) { this.elements.inputs.seek.setAttribute('aria-valuemax', this.duration); -- cgit v1.2.3