@newrelic/video-core 4.1.6 → 4.1.7

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.6",
3
+ "version": "4.1.7",
4
4
  "description": "New Relic video tracking core library",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -126,15 +126,15 @@ class VideoConfiguration {
126
126
  }
127
127
 
128
128
  /**
129
- * Sanitizes qoeIntervalFactor, defaulting to 1 if the value is not a positive integer.
129
+ * Sanitizes qoeIntervalFactor, defaulting to 2 if the value is not a positive integer.
130
130
  * @param {*} value
131
131
  * @returns {number}
132
132
  */
133
133
  sanitizeQoeIntervalFactor(value) {
134
- if (value === undefined || value === null) return 1;
134
+ if (value === undefined || value === null) return 2;
135
135
  if (typeof value === "number" && Number.isInteger(value) && value >= 1) return value;
136
- console.warn(`[nrvideo] Invalid qoeIntervalFactor "${value}" — must be a positive integer. Defaulting to 1.`);
137
- return 1;
136
+ Log.warn(`Invalid qoeIntervalFactor "${value}" — must be a positive integer. Defaulting to 2.`);
137
+ return 2;
138
138
  }
139
139
 
140
140
  /**
@@ -162,7 +162,7 @@ class VideoConfiguration {
162
162
  ...(applicationID ? {} : { appName }), // Only include appName when no applicationID
163
163
  },
164
164
  config: {
165
- qoeAggregate: config?.qoeAggregate ?? false,
165
+ qoeAggregate: config?.qoeAggregate ?? true,
166
166
  qoeIntervalFactor: this.sanitizeQoeIntervalFactor(config?.qoeIntervalFactor),
167
167
  obfuscate: this.filterObfuscateRules(config?.obfuscate),
168
168
  }