@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/CHANGELOG.md +7 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.LICENSE.txt +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.LICENSE.txt +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/umd/nrvideo.min.js +1 -1
- package/dist/umd/nrvideo.min.js.LICENSE.txt +1 -1
- package/dist/umd/nrvideo.min.js.map +1 -1
- package/package.json +1 -1
- package/src/videotracker.js +7 -12
package/package.json
CHANGED
package/src/videotracker.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
att.
|
|
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();
|