Skip to content

Commit 368f6e1

Browse files
feat: allow user to pass player_software_name and version via config
1 parent c7774b5 commit 368f6e1

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.0.5]
6+
- Added support for accepting user-provided player_software_name and player_software_version via user-passable data.
7+
58
## [1.0.4]
69
- Added `request_url` to capture each video chunk URL in hls and dash players.
710
- Implemented strict checks for `document` and `window` objects to ensure execution only in browser environments.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fastpix/video-data-core",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"author": "FastPix, Inc",
55
"license": "MIT",
66
"description": "FastPix Video Data SDK for real-time monitoring of HTML5 video players.",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ const fastpixMetrix = {
9494
...errorTracking,
9595
};
9696
userData.data = {
97-
...userData.data,
9897
player_software_name: playerConfig.name,
9998
player_software_version: playerConfig.version,
10099
player_fastpix_sdk_name: playerConfig.sdk,
101-
player_fastpix_sdk_version: "1.0.4",
100+
player_fastpix_sdk_version: "1.0.5",
101+
...userData.data
102102
};
103103

104104
const determinePreloadType = function (data: string) {

0 commit comments

Comments
 (0)