@bitmovin/player-web-integration-cmcd 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.6.1] - 2026-11-20
11
+ ### Fixed
12
+ - Measured throughput (`mtp`) was reported in kilobytes per second instead of kilobits per second, making the value 8x too low (and frequently rounding down to 0, so the key was omitted entirely). Throughput is now converted from bytes to bits before scaling to kbps.
13
+ - Next object request (`nor`) contained the absolute URL of the next segment. It is now the path relative to the current request, URL encoded as required by the specification. `nor` is omitted if the next segment is on a different origin.
14
+ - Measured throughput (`mtp`) was sent as `mtp=0` for throughputs below 50 kbps. The key is now omitted in this case.
15
+ - Requested maximum throughput (`rtp`) was never sent. It is now sent for media segment requests outside of startup and buffer starvation, with 5 times the encoded bitrate (`br`), rounded to the nearest 100 kbps.
16
+ - Startup (`su`) was sent on all requests until the first seek or stall. It is now cleared when playback starts.
17
+ - Audio segment requests used the video segments to determine `nor` and object duration (`d`).
18
+ - Object duration (`d`) was sent as `NaN` if the segment duration is unknown.
19
+ - Streaming format (`sf`) was determined by the first request of any type, so e.g. an ads manifest or DRM request made `sf=o` stick for the whole session. It is now derived from the DASH, HLS master or Smooth manifest request (a new main manifest replaces the format of the previous source) and omitted while unknown. HLS variant playlists are recognized as HLS if no format is known yet.
20
+ - Playback rate (`pr`) was sent as the playback speed while paused or before the first play. It is now `0` if the player is not playing, as required by the specification.
21
+ - State of a previous source (streaming format, startup, buffer starvation, encoded bitrate and measured throughput) was reused after loading another source into the same player. It is now reset on `SourceUnloaded`.
22
+ - package.json description referred to the wrong product.
23
+
10
24
  ## [0.6.0] - 2026-07-29
11
25
  ### Changed
12
26
  - The published npm package now only ships `dist/js` plus the top-level docs (`README.md`, `CHANGELOG.md`, `LICENSE`) and required package metadata (e.g. `package.json`). Local development files are no longer part of the tarball.
@@ -43,7 +57,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
43
57
  ### Added
44
58
  - Initial CMCD release (Beta)
45
59
 
46
- [Unreleased]: https://github.com/bitmovin/bitmovin-player-web-integration-cmcd/compare/v0.6.0...HEAD
60
+ [Unreleased]: https://github.com/bitmovin/bitmovin-player-web-integration-cmcd/compare/v0.6.1...HEAD
61
+ [0.6.1]: https://github.com/bitmovin/bitmovin-player-web-integration-cmcd/compare/v0.6.0...v0.6.1
47
62
  [0.6.0]: https://github.com/bitmovin/bitmovin-player-web-integration-cmcd/compare/v0.5.0...v0.6.0
48
63
  [0.5.0]: https://github.com/bitmovin/bitmovin-player-web-integration-cmcd/compare/v0.4.0...v0.5.0
49
64
  [0.4.0]: https://github.com/bitmovin/bitmovin-player-web-integration-cmcd/compare/v0.3.0...v0.4.0
package/dist/js/Cmcd.d.ts CHANGED
@@ -183,6 +183,7 @@ export declare class CmcdMeasuredThroughput extends CmcdBase {
183
183
  readonly key = CmcdKeysToken.MeasuredThroughput;
184
184
  readonly type = CmcdHeaderType.Request;
185
185
  constructor(value: IntegerKbps);
186
+ keyValuePairToString(): string;
186
187
  }
187
188
  /**
188
189
  * Relative path of the next object to be requested.
@@ -196,7 +197,11 @@ export declare class CmcdMeasuredThroughput extends CmcdBase {
196
197
  export declare class CmcdNextObjectRequest extends CmcdBase {
197
198
  readonly key = CmcdKeysToken.NextObjectRequest;
198
199
  readonly type = CmcdHeaderType.Request;
199
- constructor(value: string);
200
+ /**
201
+ * @param relativePath Unencoded path relative to the current request, e.g. `../300kbps/segment35.m4v`.
202
+ * It is URL encoded here, independent of the query argument encoding of the whole payload.
203
+ */
204
+ constructor(relativePath: string);
200
205
  }
201
206
  /**
202
207
  * If the next request will be a partial object request,
@@ -270,7 +275,8 @@ export declare class CmcdPlaybackRate extends CmcdBase {
270
275
  export declare class CmcdRequestedMaximumThroughput extends CmcdBase {
271
276
  readonly key = CmcdKeysToken.RequestedMaximumThroughput;
272
277
  readonly type = CmcdHeaderType.Status;
273
- constructor(value: number);
278
+ constructor(value: IntegerKbps);
279
+ keyValuePairToString(): string;
274
280
  }
275
281
  /**
276
282
  * The streaming format that defines the current
@@ -41,6 +41,8 @@ export declare class CmcdIntegration {
41
41
  private manifestType;
42
42
  constructor(config: CmcdConfig);
43
43
  setPlayer(player: PlayerAPI): void;
44
+ /** Clears all state that belongs to the previously loaded source. */
45
+ private resetSourceState;
44
46
  onVideoAdaptation: (data: VideoAdaptationData) => string;
45
47
  onAudioAdaptation: (data: AudioAdaptationData) => string;
46
48
  preprocessHttpRequest: (type: HttpRequestType, request: HttpRequest) => Promise<HttpRequest>;
@@ -49,9 +51,13 @@ export declare class CmcdIntegration {
49
51
  setContentId(id: string): void;
50
52
  private gatherCmcdData;
51
53
  private getRequestedMaximumThroughput;
54
+ /**
55
+ * Main manifest requests set the format, so loading another source before the previous one
56
+ * was unloaded is handled. An HLS variant request only sets it if still unknown (media playlist as source).
57
+ * Returns `null` while unknown, as `sf` MUST NOT be sent then.
58
+ */
52
59
  private getStreamingType;
53
60
  private getObjectType;
54
- private getAudioSegmentRequestSpecificData;
55
- private getVideoSegmentRequestSpecificData;
61
+ private getSegmentRequestSpecificData;
56
62
  private getNextObjectAndObjectDurationCmcdData;
57
63
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns the path of `targetUrl` relative to `baseUrl` (e.g. `../300kbps/segment35.m4v`),
3
+ * including the query of `targetUrl`.
4
+ * Returns `null` if no relative path is possible, i.e. both URLs have a different origin.
5
+ */
6
+ export declare function toRelativeUrl(baseUrl: string, targetUrl: string): string | null;
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BitmovinPlayerIntegrationCmcd=e():(t.bitmovin=t.bitmovin||{},t.bitmovin.player=t.bitmovin.player||{},t.bitmovin.player.integration=t.bitmovin.player.integration||{},t.bitmovin.player.integration.Cmcd=e())}(self,function(){return function(){"use strict";var t={145:function(t,e,r){r.d(e,{$y:function(){return o},CT:function(){return T},II:function(){return u},JP:function(){return a},KQ:function(){return s},Nv:function(){return y},P$:function(){return m},Qf:function(){return j},S5:function(){return h},ST:function(){return i},T:function(){return D},W1:function(){return P},Wf:function(){return R},X5:function(){return v},XO:function(){return c},Xk:function(){return g},YM:function(){return E},Yj:function(){return S},e$:function(){return b},fB:function(){return k},hU:function(){return A},nd:function(){return M},o5:function(){return O},p$:function(){return x},w6:function(){return q},xq:function(){return I}});var n,i,u,o,s,a,c,l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function p(t){return t.sort(function(t,e){return t.key.localeCompare(e.key)}).filter(function(t){return t.keyValuePairToString()})}function h(t){var e=p(t),r=e.filter(function(t){return t.type===c.Request}).map(function(t){return t.keyValuePairToString()}).join(","),n=e.filter(function(t){return t.type===c.Object}).map(function(t){return t.keyValuePairToString()}).join(","),i=e.filter(function(t){return t.type===c.Status}).map(function(t){return t.keyValuePairToString()}).join(","),u=e.filter(function(t){return t.type===c.Session}).map(function(t){return t.keyValuePairToString()}).join(","),o={};return r&&(o[c.Request]=r),n&&(o[c.Object]=n),i&&(o[c.Status]=i),u&&(o[c.Session]=u),o}function y(t){var e=p(t).map(function(t){return t.keyValuePairToString()}).join(",");return"CMCD=".concat(encodeURIComponent(e))}!function(t){t.AudioOnly="a",t.VideoOnly="v",t.MuxedVideoAudio="av",t.ManifestOrPlaylistTextFile="m",t.InitSegment="i",t.CaptionOrSubtitle="c",t.TimedTextTrack="tt",t.CryptographicKeyOrLicenseOrCertificate="k",t.Other="o"}(i||(i={})),function(t){t.MpegDash="d",t.Hls="h",t.Smooth="s",t.Other="o"}(u||(u={})),function(t){t.Vod="v",t.Live="l"}(o||(o={})),function(t){t[t.v1=1]="v1"}(s||(s={})),function(t){t.EncodedBitrate="br",t.BufferLength="bl",t.BufferStarvation="bs",t.ContentId="cid",t.ObjectDuration="d",t.Deadline="dl",t.MeasuredThroughput="mtp",t.NextObjectRequest="nor",t.NextRangeRequest="nrr",t.ObjectType="ot",t.PlaybackRate="pr",t.RequestedMaximumThroughput="rtp",t.StreamingFormat="sf",t.SessionId="sid",t.StreamType="st",t.Startup="su",t.TopBitrate="tb",t.CmcdVersion="v"}(a||(a={})),function(t){t.Object="CMCD-Object",t.Request="CMCD-Request",t.Status="CMCD-Status",t.Session="CMCD-Session"}(c||(c={}));var f,d=function(){function t(t){this.value=t}return t.prototype.keyValuePairToString=function(){return"string"==typeof this.value?this.value?"".concat(this.key,"=").concat((t=this.value,e=/"/g,r=/\\/g,'"'.concat(t.replace(r,"\\\\").replace(e,'\\"'),'"'))):"":"boolean"==typeof this.value&&!0===this.value?"".concat(this.key):"".concat(this.key,"=").concat(this.value);var t,e,r},t}(),v=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.EncodedBitrate,r.type=c.Object,r}return l(e,t),e}(d),S=function(t){function e(e){var r=t.call(this,100*Math.round(e/100))||this;return r.key=a.BufferLength,r.type=c.Request,r}return l(e,t),e}(d),g=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.BufferStarvation,r.type=c.Status,r}return l(e,t),e}(d),T=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.ContentId,r.type=c.Session,r}return l(e,t),e}(d),m=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.ObjectDuration,r.type=c.Object,r}return l(e,t),e}(d),b=function(t){function e(e){var r=t.call(this,100*Math.round(e/100))||this;return r.key=a.Deadline,r.type=c.Request,r}return l(e,t),e}(d),O=function(t){function e(e){var r=t.call(this,100*Math.round(e/100))||this;return r.key=a.MeasuredThroughput,r.type=c.Request,r}return l(e,t),e}(d),k=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.NextObjectRequest,r.type=c.Request,r}return l(e,t),e}(d),A=(l(function(t){var e=f.call(this,t)||this;return e.key=a.NextRangeRequest,e.type=c.Request,e},f=d),function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.ObjectType,r.type=c.Object,r}return l(e,t),e.prototype.keyValuePairToString=function(){return"".concat(this.key,"=").concat(this.value)},e}(d)),M=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.PlaybackRate,r.type=c.Session,r}return l(e,t),e.prototype.keyValuePairToString=function(){return 1===this.value?"":"".concat(this.key,"=").concat(this.value)},e}(d),R=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.RequestedMaximumThroughput,r.type=c.Status,r}return l(e,t),e}(d),I=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.StreamingFormat,r.type=c.Session,r}return l(e,t),e.prototype.keyValuePairToString=function(){return"".concat(this.key,"=").concat(this.value)},e}(d),x=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.SessionId,r.type=c.Session,r}return l(e,t),e}(d),E=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.StreamType,r.type=c.Session,r}return l(e,t),e.prototype.keyValuePairToString=function(){return"".concat(this.key,"=").concat(this.value)},e}(d),D=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.Startup,r.type=c.Request,r}return l(e,t),e.prototype.keyValuePairToString=function(){return!0===this.value?"".concat(this.key):""},e}(d),P=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.TopBitrate,r.type=c.Object,r}return l(e,t),e}(d),q=function(t){function e(e){var r=t.call(this,e)||this;return r.key=a.CmcdVersion,r.type=c.Session,r}return l(e,t),e.prototype.keyValuePairToString=function(){return this.value===s.v1?"":"".concat(this.key,"=").concat(this.value)},e}(d),j=function(t){function e(e,r,n){var i=t.call(this,r)||this,u=e.match(/^(.*-)(.*)$/);if(!u||!u[2])throw new Error("Custom key names MUST carry a hyphenated prefix (and SHOULD use a reverse-DNS syntax)");return i.key=e,i.type=Object.values(c).includes(n)?n:null,i}return l(e,t),e}(d)},779:function(t,e,r){r.r(e),r.d(e,{CmcdIntegration:function(){return o},CustomKey:function(){return n.Qf},HeaderType:function(){return n.XO}});var n=r(145),i=function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},u=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,u=e.length;i<u;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},o=function(){function t(t){var e=this;if(this.onVideoAdaptation=function(t){return e.currentVideoQuality=t.representations.filter(function(e){return e.id===t.suggested})[0],t.suggested},this.onAudioAdaptation=function(t){return e.currentAudioQuality=t.representations.filter(function(e){return e.id===t.suggested})[0],t.suggested},this.preprocessHttpRequest=function(t,r){var o=e.gatherCmcdData(t,r);if(e.useQueryArgs)r.url=function(t,e){var r=t.indexOf("?"),n=t.indexOf("#"),i=-1===n?"":t.slice(n),o=-1===n?t:t.slice(0,n);if(-1===r||-1!==n&&r>n)return"".concat(o,"?").concat(e).concat(i);var s=o.slice(0,r),a=o.slice(r+1).split("&").filter(function(t){return""!==t&&"CMCD"!==t&&!t.startsWith("CMCD=")}),c=u(u([],a,!0),[e],!1).join("&");return"".concat(s,"?").concat(c).concat(i)}(r.url,(0,n.Nv)(o));else{var s=(0,n.S5)(o);r.headers=i(i({},r.headers),s)}return Promise.resolve(r)},this.preprocessHttpResponse=function(t,r){var n,i,u=r.elapsedTime,o=r.length;if(!u||!o)return Promise.resolve(r);var s=o/u/1e3;return t===((null===(n=e.player)||void 0===n?void 0:n.exports.HttpRequestType.MEDIA_AUDIO)||"media/audio")&&(e.lastMeasuredThroughputAudio=Math.round(100*s)/100),t===((null===(i=e.player)||void 0===i?void 0:i.exports.HttpRequestType.MEDIA_VIDEO)||"media/video")&&(e.lastMeasuredThroughputVideo=Math.round(100*s)/100),Promise.resolve(r)},this.useQueryArgs=t.useQueryArgs||!1,this.sessionId=t.sessionId||"",this.contentId=t.contentId||"",this.customKeys=t.customKeys||[],this.stalledSinceLastRequest=!1,this.currentVideoQuality=null,this.currentAudioQuality=null,this.isSeekingOrTimeshiftingOrStartup=!0,this.lastMeasuredThroughputAudio=0,this.lastMeasuredThroughputVideo=0,this.manifestType=null,!1===this.useQueryArgs&&this.customKeys.length>0){var r=this.customKeys.filter(function(t){return null===t.type}).map(function(t){return t.key});if(r.length>0)throw new Error("All custom keys must have an HTTP header type configured if HTTP header mode is used (`CmcdConfig.useQueryArgs = false`), but is missing for "+r.join(", "))}}return t.prototype.setPlayer=function(t){var e=this;this.player=t,this.player.on(t.exports.PlayerEvent.StallStarted,function(){e.stalledSinceLastRequest=!0,e.isSeekingOrTimeshiftingOrStartup=!0}),this.player.on(t.exports.PlayerEvent.StallEnded,function(){return e.isSeekingOrTimeshiftingOrStartup=!1}),this.player.on(t.exports.PlayerEvent.Seek,function(){return e.isSeekingOrTimeshiftingOrStartup=!0}),this.player.on(t.exports.PlayerEvent.Seeked,function(){return e.isSeekingOrTimeshiftingOrStartup=!1}),this.player.on(t.exports.PlayerEvent.TimeShift,function(){return e.isSeekingOrTimeshiftingOrStartup=!0}),this.player.on(t.exports.PlayerEvent.TimeShifted,function(){return e.isSeekingOrTimeshiftingOrStartup=!1})},t.prototype.setSessionId=function(t){this.sessionId=t},t.prototype.setContentId=function(t){this.contentId=t},t.prototype.gatherCmcdData=function(t,e){var r,i;if(!this.player)throw new Error("Bitmovin Player not provided!");var u=[];u.push(new n.w6(n.KQ.v1)),u.push(new n.YM(this.player.isLive()?n.$y.Live:n.$y.Vod)),u.push(new n.nd(this.player.getPlaybackSpeed())),u.push(this.getObjectType(t)),u.push(this.getStreamingType(t)),this.contentId&&u.push(new n.CT(this.contentId)),this.sessionId&&u.push(new n.p$(this.sessionId)),this.isSeekingOrTimeshiftingOrStartup&&u.push(new n.T(!0)),(this.stalledSinceLastRequest||this.player.isStalled())&&(u.push(new n.Xk(!0)),this.stalledSinceLastRequest=!1),t===(null===(r=this.player)||void 0===r?void 0:r.exports.HttpRequestType.MEDIA_AUDIO)?u=u.concat(this.getAudioSegmentRequestSpecificData(e)):t===(null===(i=this.player)||void 0===i?void 0:i.exports.HttpRequestType.MEDIA_VIDEO)&&(u=u.concat(this.getVideoSegmentRequestSpecificData(e))),u.concat(this.getRequestedMaximumThroughput(u));for(var o=0,s=this.customKeys;o<s.length;o++){var a=s[o];u.push(a)}return u},t.prototype.getRequestedMaximumThroughput=function(t){var e=t.find(function(t){return t.key===n.JP.EncodedBitrate}),r=t.find(function(t){return t.key===n.JP.ObjectDuration}),i=Boolean(t.find(function(t){return t.key===n.JP.ObjectDuration})),u=t.find(function(t){return t.key===n.JP.Startup}),o=u&&!u.value;if(e&&r&&!i&&!o){var s=1e3*Number(r.value),a=Number(e.value)*(s/2);return[new n.Wf(a)]}return[]},t.prototype.getStreamingType=function(t){var e,r,i;return this.manifestType||(t===(null===(e=this.player)||void 0===e?void 0:e.exports.HttpRequestType.MANIFEST_DASH)?this.manifestType=n.II.MpegDash:t===(null===(r=this.player)||void 0===r?void 0:r.exports.HttpRequestType.MANIFEST_HLS_MASTER)?this.manifestType=n.II.Hls:t===(null===(i=this.player)||void 0===i?void 0:i.exports.HttpRequestType.MANIFEST_SMOOTH)?this.manifestType=n.II.Smooth:this.manifestType=n.II.Other),new n.xq(this.manifestType)},t.prototype.getObjectType=function(t){var e,r,i,u,o,s,a,c,l,p,h,y,f,d,v,S;switch(t){case null===(e=this.player)||void 0===e?void 0:e.exports.HttpRequestType.MEDIA_AUDIO:S=new n.hU(n.ST.AudioOnly);break;case null===(r=this.player)||void 0===r?void 0:r.exports.HttpRequestType.MEDIA_VIDEO:S=new n.hU(n.ST.VideoOnly);break;case null===(i=this.player)||void 0===i?void 0:i.exports.HttpRequestType.DRM_CERTIFICATE_FAIRPLAY:case null===(u=this.player)||void 0===u?void 0:u.exports.HttpRequestType.DRM_LICENSE_CLEARKEY:case null===(o=this.player)||void 0===o?void 0:o.exports.HttpRequestType.DRM_LICENSE_FAIRPLAY:case null===(s=this.player)||void 0===s?void 0:s.exports.HttpRequestType.DRM_LICENSE_PLAYREADY:case null===(a=this.player)||void 0===a?void 0:a.exports.HttpRequestType.DRM_LICENSE_WIDEVINE:case null===(c=this.player)||void 0===c?void 0:c.exports.HttpRequestType.KEY_HLS_AES:S=new n.hU(n.ST.CryptographicKeyOrLicenseOrCertificate);break;case null===(l=this.player)||void 0===l?void 0:l.exports.HttpRequestType.MANIFEST_ADS:case null===(p=this.player)||void 0===p?void 0:p.exports.HttpRequestType.MANIFEST_DASH:case null===(h=this.player)||void 0===h?void 0:h.exports.HttpRequestType.MANIFEST_HLS_MASTER:case null===(y=this.player)||void 0===y?void 0:y.exports.HttpRequestType.MANIFEST_HLS_VARIANT:case null===(f=this.player)||void 0===f?void 0:f.exports.HttpRequestType.MANIFEST_SMOOTH:S=new n.hU(n.ST.ManifestOrPlaylistTextFile);break;case null===(d=this.player)||void 0===d?void 0:d.exports.HttpRequestType.MEDIA_SEGMENTINDEX:S=new n.hU(n.ST.InitSegment);break;case null===(v=this.player)||void 0===v?void 0:v.exports.HttpRequestType.MEDIA_SUBTITLES:S=new n.hU(n.ST.CaptionOrSubtitle);break;default:S=new n.hU(n.ST.Other)}return S},t.prototype.getAudioSegmentRequestSpecificData=function(t){var e,r=[];if(this.currentAudioQuality&&this.currentAudioQuality.bandwidth&&r.push(new n.X5(Math.round(this.currentAudioQuality.bandwidth/1e3))),this.lastMeasuredThroughputAudio&&r.push(new n.o5(this.lastMeasuredThroughputAudio)),!this.player)return r;var i=this.player.buffer.getLevel(this.player.exports.BufferType.ForwardDuration,this.player.exports.MediaType.Audio);if(i.targetLevel>0){r.push(new n.Yj(1e3*i.level));var u=i.level/(null===(e=this.player)||void 0===e?void 0:e.getPlaybackSpeed());r.push(new n.e$(1e3*u))}var o=this.player.getAvailableAudioQualities().reduce(function(t,e){return Math.max(t,e.bitrate)},0)/1e3;if(o>0&&r.push(new n.W1(o)),this.currentVideoQuality)try{var s=this.player.getAvailableSegments();for(var a in s)if(a.startsWith("video/")){var c=s[a][this.currentVideoQuality.id];r=r.concat(this.getNextObjectAndObjectDurationCmcdData(c,t.url))}}catch(t){console.error("Error processing audio segments:",t)}return r},t.prototype.getVideoSegmentRequestSpecificData=function(t){var e,r=[];if(this.currentVideoQuality&&this.currentVideoQuality.bandwidth&&r.push(new n.X5(Math.round(this.currentVideoQuality.bandwidth/1e3))),this.lastMeasuredThroughputVideo&&r.push(new n.o5(this.lastMeasuredThroughputVideo)),!this.player)return r;var i=this.player.buffer.getLevel(this.player.exports.BufferType.ForwardDuration,this.player.exports.MediaType.Video);if(i.targetLevel>0){r.push(new n.Yj(1e3*i.level));var u=i.level/(null===(e=this.player)||void 0===e?void 0:e.getPlaybackSpeed());r.push(new n.e$(1e3*u))}var o=this.player.getAvailableVideoQualities().reduce(function(t,e){return Math.max(t,e.bitrate)},0)/1e3;if(o>0&&r.push(new n.W1(o)),this.currentVideoQuality)try{var s=this.player.getAvailableSegments();for(var a in s)if(a.startsWith("video/")){var c=s[a][this.currentVideoQuality.id];r=r.concat(this.getNextObjectAndObjectDurationCmcdData(c,t.url))}}catch(t){console.error("Error processing video segments:",t)}return r},t.prototype.getNextObjectAndObjectDurationCmcdData=function(t,e){var r=[],i=t.findIndex(function(t){return t.url===e});if(i>-1){var u=t[i];if(Number.isNaN(u.duration)||r.push(new n.P$(1e3*Number(u.duration))),i+1<t.length){var o=t[i+1];o.url&&r.push(new n.fB(o.url))}}return r},t}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var u=e[n]={exports:{}};return t[n](u,u.exports,r),u.exports}return r.d=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;){var i=e[n++],u=e[n++];r.o(t,i)?0===u&&n++:0===u?Object.defineProperty(t,i,{enumerable:!0,value:e[n++]}):Object.defineProperty(t,i,{enumerable:!0,get:u})}else for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(145),r(779)}()});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BitmovinPlayerIntegrationCmcd=e():(t.bitmovin=t.bitmovin||{},t.bitmovin.player=t.bitmovin.player||{},t.bitmovin.player.integration=t.bitmovin.player.integration||{},t.bitmovin.player.integration.Cmcd=e())}(self,function(){return function(){"use strict";var t={145:function(t,e,n){n.d(e,{$y:function(){return u},CT:function(){return T},II:function(){return o},JP:function(){return a},KQ:function(){return s},Nv:function(){return y},P$:function(){return m},Qf:function(){return q},S5:function(){return h},ST:function(){return i},T:function(){return P},W1:function(){return D},Wf:function(){return R},X5:function(){return v},XO:function(){return c},Xk:function(){return g},YM:function(){return E},Yj:function(){return S},e$:function(){return O},fB:function(){return k},hU:function(){return A},nd:function(){return I},o5:function(){return b},p$:function(){return x},w6:function(){return C},xq:function(){return M}});var r,i,o,u,s,a,c,l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function p(t){return t.sort(function(t,e){return t.key.localeCompare(e.key)}).filter(function(t){return t.keyValuePairToString()})}function h(t){var e=p(t),n=e.filter(function(t){return t.type===c.Request}).map(function(t){return t.keyValuePairToString()}).join(","),r=e.filter(function(t){return t.type===c.Object}).map(function(t){return t.keyValuePairToString()}).join(","),i=e.filter(function(t){return t.type===c.Status}).map(function(t){return t.keyValuePairToString()}).join(","),o=e.filter(function(t){return t.type===c.Session}).map(function(t){return t.keyValuePairToString()}).join(","),u={};return n&&(u[c.Request]=n),r&&(u[c.Object]=r),i&&(u[c.Status]=i),o&&(u[c.Session]=o),u}function y(t){var e=p(t).map(function(t){return t.keyValuePairToString()}).join(",");return"CMCD=".concat(encodeURIComponent(e))}!function(t){t.AudioOnly="a",t.VideoOnly="v",t.MuxedVideoAudio="av",t.ManifestOrPlaylistTextFile="m",t.InitSegment="i",t.CaptionOrSubtitle="c",t.TimedTextTrack="tt",t.CryptographicKeyOrLicenseOrCertificate="k",t.Other="o"}(i||(i={})),function(t){t.MpegDash="d",t.Hls="h",t.Smooth="s",t.Other="o"}(o||(o={})),function(t){t.Vod="v",t.Live="l"}(u||(u={})),function(t){t[t.v1=1]="v1"}(s||(s={})),function(t){t.EncodedBitrate="br",t.BufferLength="bl",t.BufferStarvation="bs",t.ContentId="cid",t.ObjectDuration="d",t.Deadline="dl",t.MeasuredThroughput="mtp",t.NextObjectRequest="nor",t.NextRangeRequest="nrr",t.ObjectType="ot",t.PlaybackRate="pr",t.RequestedMaximumThroughput="rtp",t.StreamingFormat="sf",t.SessionId="sid",t.StreamType="st",t.Startup="su",t.TopBitrate="tb",t.CmcdVersion="v"}(a||(a={})),function(t){t.Object="CMCD-Object",t.Request="CMCD-Request",t.Status="CMCD-Status",t.Session="CMCD-Session"}(c||(c={}));var f,d=function(){function t(t){this.value=t}return t.prototype.keyValuePairToString=function(){return"string"==typeof this.value?this.value?"".concat(this.key,"=").concat((t=this.value,e=/"/g,n=/\\/g,'"'.concat(t.replace(n,"\\\\").replace(e,'\\"'),'"'))):"":"boolean"==typeof this.value&&!0===this.value?"".concat(this.key):"".concat(this.key,"=").concat(this.value);var t,e,n},t}(),v=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.EncodedBitrate,n.type=c.Object,n}return l(e,t),e}(d),S=function(t){function e(e){var n=t.call(this,100*Math.round(e/100))||this;return n.key=a.BufferLength,n.type=c.Request,n}return l(e,t),e}(d),g=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.BufferStarvation,n.type=c.Status,n}return l(e,t),e}(d),T=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.ContentId,n.type=c.Session,n}return l(e,t),e}(d),m=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.ObjectDuration,n.type=c.Object,n}return l(e,t),e}(d),O=function(t){function e(e){var n=t.call(this,100*Math.round(e/100))||this;return n.key=a.Deadline,n.type=c.Request,n}return l(e,t),e}(d),b=function(t){function e(e){var n=t.call(this,100*Math.round(e/100))||this;return n.key=a.MeasuredThroughput,n.type=c.Request,n}return l(e,t),e.prototype.keyValuePairToString=function(){return 0===this.value?"":t.prototype.keyValuePairToString.call(this)},e}(d),k=function(t){function e(e){var n=t.call(this,encodeURIComponent(e))||this;return n.key=a.NextObjectRequest,n.type=c.Request,n}return l(e,t),e}(d),A=(l(function(t){var e=f.call(this,t)||this;return e.key=a.NextRangeRequest,e.type=c.Request,e},f=d),function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.ObjectType,n.type=c.Object,n}return l(e,t),e.prototype.keyValuePairToString=function(){return"".concat(this.key,"=").concat(this.value)},e}(d)),I=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.PlaybackRate,n.type=c.Session,n}return l(e,t),e.prototype.keyValuePairToString=function(){return 1===this.value?"":"".concat(this.key,"=").concat(this.value)},e}(d),R=function(t){function e(e){var n=t.call(this,100*Math.round(e/100))||this;return n.key=a.RequestedMaximumThroughput,n.type=c.Status,n}return l(e,t),e.prototype.keyValuePairToString=function(){return 0===this.value?"":t.prototype.keyValuePairToString.call(this)},e}(d),M=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.StreamingFormat,n.type=c.Session,n}return l(e,t),e.prototype.keyValuePairToString=function(){return"".concat(this.key,"=").concat(this.value)},e}(d),x=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.SessionId,n.type=c.Session,n}return l(e,t),e}(d),E=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.StreamType,n.type=c.Session,n}return l(e,t),e.prototype.keyValuePairToString=function(){return"".concat(this.key,"=").concat(this.value)},e}(d),P=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.Startup,n.type=c.Request,n}return l(e,t),e.prototype.keyValuePairToString=function(){return!0===this.value?"".concat(this.key):""},e}(d),D=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.TopBitrate,n.type=c.Object,n}return l(e,t),e}(d),C=function(t){function e(e){var n=t.call(this,e)||this;return n.key=a.CmcdVersion,n.type=c.Session,n}return l(e,t),e.prototype.keyValuePairToString=function(){return this.value===s.v1?"":"".concat(this.key,"=").concat(this.value)},e}(d),q=function(t){function e(e,n,r){var i=t.call(this,n)||this,o=e.match(/^(.*-)(.*)$/);if(!o||!o[2])throw new Error("Custom key names MUST carry a hyphenated prefix (and SHOULD use a reverse-DNS syntax)");return i.key=e,i.type=Object.values(c).includes(r)?r:null,i}return l(e,t),e}(d)},46:function(t,e,n){n.r(e),n.d(e,{CmcdIntegration:function(){return s},CustomKey:function(){return r.Qf},HeaderType:function(){return r.XO}});var r=n(145),i=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},u=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},s=function(){function t(t){var e=this;if(this.onVideoAdaptation=function(t){return e.currentVideoQuality=t.representations.filter(function(e){return e.id===t.suggested})[0],t.suggested},this.onAudioAdaptation=function(t){return e.currentAudioQuality=t.representations.filter(function(e){return e.id===t.suggested})[0],t.suggested},this.preprocessHttpRequest=function(t,n){var i=e.gatherCmcdData(t,n);if(e.useQueryArgs)n.url=function(t,e){var n=t.indexOf("?"),r=t.indexOf("#"),i=-1===r?"":t.slice(r),o=-1===r?t:t.slice(0,r);if(-1===n||-1!==r&&n>r)return"".concat(o,"?").concat(e).concat(i);var s=o.slice(0,n),a=o.slice(n+1).split("&").filter(function(t){return""!==t&&"CMCD"!==t&&!t.startsWith("CMCD=")}),c=u(u([],a,!0),[e],!1).join("&");return"".concat(s,"?").concat(c).concat(i)}(n.url,(0,r.Nv)(i));else{var s=(0,r.S5)(i);n.headers=o(o({},n.headers),s)}return Promise.resolve(n)},this.preprocessHttpResponse=function(t,n){var r,i,o=n.elapsedTime,u=n.length;if(!o||!u)return Promise.resolve(n);var s=8*u/o/1e3;return t===((null===(r=e.player)||void 0===r?void 0:r.exports.HttpRequestType.MEDIA_AUDIO)||"media/audio")&&(e.lastMeasuredThroughputAudio=Math.round(100*s)/100),t===((null===(i=e.player)||void 0===i?void 0:i.exports.HttpRequestType.MEDIA_VIDEO)||"media/video")&&(e.lastMeasuredThroughputVideo=Math.round(100*s)/100),Promise.resolve(n)},this.useQueryArgs=t.useQueryArgs||!1,this.sessionId=t.sessionId||"",this.contentId=t.contentId||"",this.customKeys=t.customKeys||[],this.resetSourceState(),!1===this.useQueryArgs&&this.customKeys.length>0){var n=this.customKeys.filter(function(t){return null===t.type}).map(function(t){return t.key});if(n.length>0)throw new Error("All custom keys must have an HTTP header type configured if HTTP header mode is used (`CmcdConfig.useQueryArgs = false`), but is missing for "+n.join(", "))}}return t.prototype.setPlayer=function(t){var e=this;this.player=t,this.player.on(t.exports.PlayerEvent.SourceUnloaded,function(){return e.resetSourceState()}),this.player.on(t.exports.PlayerEvent.StallStarted,function(){e.stalledSinceLastRequest=!0,e.isSeekingOrTimeshiftingOrStartup=!0}),this.player.on(t.exports.PlayerEvent.StallEnded,function(){return e.isSeekingOrTimeshiftingOrStartup=!1}),this.player.on(t.exports.PlayerEvent.Playing,function(){return e.isSeekingOrTimeshiftingOrStartup=!1}),this.player.on(t.exports.PlayerEvent.Seek,function(){return e.isSeekingOrTimeshiftingOrStartup=!0}),this.player.on(t.exports.PlayerEvent.Seeked,function(){return e.isSeekingOrTimeshiftingOrStartup=!1}),this.player.on(t.exports.PlayerEvent.TimeShift,function(){return e.isSeekingOrTimeshiftingOrStartup=!0}),this.player.on(t.exports.PlayerEvent.TimeShifted,function(){return e.isSeekingOrTimeshiftingOrStartup=!1})},t.prototype.resetSourceState=function(){this.stalledSinceLastRequest=!1,this.currentVideoQuality=null,this.currentAudioQuality=null,this.isSeekingOrTimeshiftingOrStartup=!0,this.lastMeasuredThroughputAudio=0,this.lastMeasuredThroughputVideo=0,this.manifestType=null},t.prototype.setSessionId=function(t){this.sessionId=t},t.prototype.setContentId=function(t){this.contentId=t},t.prototype.gatherCmcdData=function(t,e){if(!this.player)throw new Error("Bitmovin Player not provided!");var n=[];n.push(new r.w6(r.KQ.v1)),n.push(new r.YM(this.player.isLive()?r.$y.Live:r.$y.Vod)),n.push(new r.nd(this.player.isPlaying()?this.player.getPlaybackSpeed():0)),n.push(this.getObjectType(t));var i=this.getStreamingType(t);i&&n.push(i),this.contentId&&n.push(new r.CT(this.contentId)),this.sessionId&&n.push(new r.p$(this.sessionId));var o=this.isSeekingOrTimeshiftingOrStartup;o&&n.push(new r.T(!0));var u=this.stalledSinceLastRequest||this.player.isStalled();u&&(n.push(new r.Xk(!0)),this.stalledSinceLastRequest=!1),t===this.player.exports.HttpRequestType.MEDIA_AUDIO?n=n.concat(this.getSegmentRequestSpecificData(e,"audio")):t===this.player.exports.HttpRequestType.MEDIA_VIDEO&&(n=n.concat(this.getSegmentRequestSpecificData(e,"video"))),o||u||(n=n.concat(this.getRequestedMaximumThroughput(n)));for(var s=0,a=this.customKeys;s<a.length;s++){var c=a[s];n.push(c)}return n},t.prototype.getRequestedMaximumThroughput=function(t){var e=t.find(function(t){return t.key===r.JP.EncodedBitrate});return e?[new r.Wf(5*Number(e.value))]:[]},t.prototype.getStreamingType=function(t){var e,n=null===(e=this.player)||void 0===e?void 0:e.exports.HttpRequestType;return t===(null==n?void 0:n.MANIFEST_DASH)?this.manifestType=r.II.MpegDash:t===(null==n?void 0:n.MANIFEST_HLS_MASTER)?this.manifestType=r.II.Hls:t===(null==n?void 0:n.MANIFEST_SMOOTH)?this.manifestType=r.II.Smooth:t!==(null==n?void 0:n.MANIFEST_HLS_VARIANT)||this.manifestType||(this.manifestType=r.II.Hls),this.manifestType?new r.xq(this.manifestType):null},t.prototype.getObjectType=function(t){var e,n,i,o,u,s,a,c,l,p,h,y,f,d,v,S;switch(t){case null===(e=this.player)||void 0===e?void 0:e.exports.HttpRequestType.MEDIA_AUDIO:S=new r.hU(r.ST.AudioOnly);break;case null===(n=this.player)||void 0===n?void 0:n.exports.HttpRequestType.MEDIA_VIDEO:S=new r.hU(r.ST.VideoOnly);break;case null===(i=this.player)||void 0===i?void 0:i.exports.HttpRequestType.DRM_CERTIFICATE_FAIRPLAY:case null===(o=this.player)||void 0===o?void 0:o.exports.HttpRequestType.DRM_LICENSE_CLEARKEY:case null===(u=this.player)||void 0===u?void 0:u.exports.HttpRequestType.DRM_LICENSE_FAIRPLAY:case null===(s=this.player)||void 0===s?void 0:s.exports.HttpRequestType.DRM_LICENSE_PLAYREADY:case null===(a=this.player)||void 0===a?void 0:a.exports.HttpRequestType.DRM_LICENSE_WIDEVINE:case null===(c=this.player)||void 0===c?void 0:c.exports.HttpRequestType.KEY_HLS_AES:S=new r.hU(r.ST.CryptographicKeyOrLicenseOrCertificate);break;case null===(l=this.player)||void 0===l?void 0:l.exports.HttpRequestType.MANIFEST_ADS:case null===(p=this.player)||void 0===p?void 0:p.exports.HttpRequestType.MANIFEST_DASH:case null===(h=this.player)||void 0===h?void 0:h.exports.HttpRequestType.MANIFEST_HLS_MASTER:case null===(y=this.player)||void 0===y?void 0:y.exports.HttpRequestType.MANIFEST_HLS_VARIANT:case null===(f=this.player)||void 0===f?void 0:f.exports.HttpRequestType.MANIFEST_SMOOTH:S=new r.hU(r.ST.ManifestOrPlaylistTextFile);break;case null===(d=this.player)||void 0===d?void 0:d.exports.HttpRequestType.MEDIA_SEGMENTINDEX:S=new r.hU(r.ST.InitSegment);break;case null===(v=this.player)||void 0===v?void 0:v.exports.HttpRequestType.MEDIA_SUBTITLES:S=new r.hU(r.ST.CaptionOrSubtitle);break;default:S=new r.hU(r.ST.Other)}return S},t.prototype.getSegmentRequestSpecificData=function(t,e){var n=[];if(!this.player)return n;var i="audio"===e,o=i?this.currentAudioQuality:this.currentVideoQuality,u=i?this.lastMeasuredThroughputAudio:this.lastMeasuredThroughputVideo;o&&o.bandwidth&&n.push(new r.X5(Math.round(o.bandwidth/1e3))),u&&n.push(new r.o5(u));var s=this.player.buffer.getLevel(this.player.exports.BufferType.ForwardDuration,i?this.player.exports.MediaType.Audio:this.player.exports.MediaType.Video);if(s.targetLevel>0){n.push(new r.Yj(1e3*s.level));var a=s.level/this.player.getPlaybackSpeed();n.push(new r.e$(1e3*a))}var c=(i?this.player.getAvailableAudioQualities():this.player.getAvailableVideoQualities()).reduce(function(t,e){return Math.max(t,e.bitrate)},0)/1e3;if(c>0&&n.push(new r.W1(c)),o)try{var l=this.player.getAvailableSegments();for(var p in l){var h=l[p][o.id];p.startsWith("".concat(e,"/"))&&h&&(n=n.concat(this.getNextObjectAndObjectDurationCmcdData(h,t.url)))}}catch(t){console.error("Error processing ".concat(e," segments:"),t)}return n},t.prototype.getNextObjectAndObjectDurationCmcdData=function(t,e){var n=[],o=t.findIndex(function(t){return t.url===e});if(o>-1){var u=t[o];if(Number.isFinite(u.duration)&&n.push(new r.P$(1e3*Number(u.duration))),o+1<t.length){var s=t[o+1],a=s.url?function(t,e){var n,r;try{n=new URL(t),r=new URL(e,n)}catch(t){return null}if(n.origin!==r.origin)return null;for(var o=n.pathname.split("/").slice(0,-1),u=r.pathname.split("/"),s=0;s<o.length&&s<u.length-1&&o[s]===u[s];)s++;var a=new Array(o.length-s).fill(".."),c=i(i([],a,!0),u.slice(s),!0).join("/");return 0===a.length&&c.split("/")[0].includes(":")&&(c="./".concat(c)),"".concat(c).concat(r.search)}(e,s.url):null;a&&n.push(new r.fB(a))}}return n},t}()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return n.d=function(t,e){if(Array.isArray(e))for(var r=0;r<e.length;){var i=e[r++],o=e[r++];n.o(t,i)?0===o&&r++:0===o?Object.defineProperty(t,i,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,i,{enumerable:!0,get:o})}else for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(145),n(46)}()});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitmovin/player-web-integration-cmcd",
3
- "version": "0.6.0",
4
- "description": "Conviva analytics integration for the Bitmovin Player",
3
+ "version": "0.6.1",
4
+ "description": "CMCD (CTA-5004) integration for the Bitmovin Player",
5
5
  "types": "dist/js/CmcdIntegration.d.ts",
6
6
  "browser": "dist/js/bitmovin-player-integration-cmcd.js",
7
7
  "main": "dist/js/bitmovin-player-integration-cmcd.js",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "ssh://git@github.com/bitmovin/bitmovin-player-web-integration-cmcd.git"
16
+ "url": "git+https://github.com/bitmovin/bitmovin-player-web-integration-cmcd.git"
17
17
  },
18
18
  "scripts": {
19
19
  "format": "prettier --write src/ test/",