@newrelic/video-core 4.1.2 → 4.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/video-core",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "New Relic video tracking core library",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -485,10 +485,8 @@ class VideoTracker extends Tracker {
485
485
  // Only add bitrate attributes after ad has started
486
486
  if (this.state.isStarted) {
487
487
  att.adBitrate =
488
- this.getBitrate() ||
489
- this.getWebkitBitrate() ||
490
- this.getRenditionBitrate();
491
- att.adRenditionBitrate = this.getRenditionBitrate();
488
+ this.getBitrate() || 0;
489
+ att.adRenditionBitrate = this.getRenditionBitrate() || 0;
492
490
  }
493
491
 
494
492
  att.adRenditionName = this.getRenditionName();
@@ -516,14 +514,11 @@ class VideoTracker extends Tracker {
516
514
 
517
515
  // Only add bitrate attributes after content has started
518
516
  if (this.state.isStarted) {
519
- att.contentBitrate =
520
- this.getBitrate() ||
521
- this.getWebkitBitrate() ||
522
- this.getRenditionBitrate();
523
- att.contentRenditionBitrate = this.getRenditionBitrate();
524
- att.contentManifestBitrate = this.getManifestBitrate();
525
- att.contentMeasuredBitrate = this.getMeasuredBitrate();
526
- att.contentDownloadBitrate = this.getDownloadBitrate();
517
+ att.contentBitrate = this.getBitrate()|| 0;
518
+ att.contentRenditionBitrate = this.getRenditionBitrate() || 0;
519
+ att.contentManifestBitrate = this.getManifestBitrate() || 0;
520
+ att.contentMeasuredBitrate = this.getMeasuredBitrate() || 0;
521
+ att.contentDownloadBitrate = this.getDownloadBitrate() || 0;
527
522
  }
528
523
 
529
524
  att.contentRenditionName = this.getRenditionName();