diff --git a/index.d.ts b/index.d.ts index 9381905223..1365464157 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1218,7 +1218,7 @@ declare namespace dashjs { } export interface IManifestInfo { - DVRWindowSize: number; + dvrWindowSize: number; availableFrom: Date; duration: number; isDynamic: boolean; diff --git a/src/dash/DashAdapter.js b/src/dash/DashAdapter.js index 68d02f8a74..e359313ad4 100644 --- a/src/dash/DashAdapter.js +++ b/src/dash/DashAdapter.js @@ -1071,7 +1071,7 @@ function DashAdapter() { function convertMpdToManifestInfo(mpd) { let manifestInfo = new ManifestInfo(); - manifestInfo.DVRWindowSize = mpd.timeShiftBufferDepth; + manifestInfo.dvrWindowSize = mpd.timeShiftBufferDepth; manifestInfo.loadedTime = mpd.manifest.loadedTime; manifestInfo.availableFrom = mpd.availabilityStartTime; manifestInfo.minBufferTime = mpd.manifest.minBufferTime; diff --git a/src/dash/vo/ManifestInfo.js b/src/dash/vo/ManifestInfo.js index cb02fc7480..79a7a778dc 100644 --- a/src/dash/vo/ManifestInfo.js +++ b/src/dash/vo/ManifestInfo.js @@ -34,7 +34,7 @@ */ class ManifestInfo { constructor() { - this.DVRWindowSize = NaN; + this.dvrWindowSize = NaN; this.loadedTime = null; this.availableFrom = null; this.minBufferTime = NaN; @@ -44,4 +44,4 @@ class ManifestInfo { } } -export default ManifestInfo; \ No newline at end of file +export default ManifestInfo; diff --git a/src/mss/MssHandler.js b/src/mss/MssHandler.js index 6c32b990aa..a1a29fb52a 100644 --- a/src/mss/MssHandler.js +++ b/src/mss/MssHandler.js @@ -184,7 +184,7 @@ function MssHandler(config) { // Start MssFragmentInfoControllers in case of start-over streams let manifestInfo = e.request.mediaInfo.streamInfo.manifestInfo; - if (!manifestInfo.isDynamic && manifestInfo.DVRWindowSize !== Infinity) { + if (!manifestInfo.isDynamic && manifestInfo.dvrWindowSize !== Infinity) { startFragmentInfoControllers(); } } diff --git a/src/streaming/MediaPlayer.js b/src/streaming/MediaPlayer.js index ceb10cd894..73158ca97a 100644 --- a/src/streaming/MediaPlayer.js +++ b/src/streaming/MediaPlayer.js @@ -698,7 +698,7 @@ function MediaPlayer() { if (!metric) { return 0; } - return metric.manifestInfo.DVRWindowSize; + return metric.manifestInfo.dvrWindowSize; } /** diff --git a/test/unit/streaming.controllers.StreamController.js b/test/unit/streaming.controllers.StreamController.js index ace8c9d7e9..4eb669c282 100644 --- a/test/unit/streaming.controllers.StreamController.js +++ b/test/unit/streaming.controllers.StreamController.js @@ -217,7 +217,7 @@ describe('StreamController', function () { let staticStreamInfo = { manifestInfo: { isDynamic: false }, start: 10, duration: 600, id: '1' }; let dynamicStreamInfo = { - manifestInfo: { isDynamic: true, DVRWindowSize: 30, minBufferTime: 4 }, + manifestInfo: { isDynamic: true, dvrWindowSize: 30, minBufferTime: 4 }, start: 10, duration: Infinity, id: '1'