Skip to content

Commit

Permalink
error details name and code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mlychndnnr committed Jan 22, 2025
1 parent 9512c2e commit f2b6eb0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# CHANGELOG

## [0.4.0] - 2024/10/07

### Update

- new Attributes added playerName, playerVersion and instrumentation attributes

## [0.3.0] - 2024/10/07

### Update

- Upgraded Shaka Player version `4.11.2`.

## [0.2.0] - 2017/11/28

### Lib

- Upgraded to use lib version `0.9.1+`.

## [0.1.0] -
- First Version
## [0.1.0] -

- First Version
7 changes: 3 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"license": "MIT",
"dependencies": {
"codem-isoboxer": "^0.3.10",
"newrelic-video-core": "git+https://github.com/newrelic/video-core-js.git"
"newrelic-video-core": "github:newrelic/video-core-js#develop"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
"@babel/preset-env": "^7.0.0",
"aws-sdk": "^2.920.0",
"babel-loader": "^8.0.0",
"babel-jest": "^29.7.0",
"babel-loader": "^8.0.0",
"jest": "^29.7.0",
"videojs-ima": "^0.6.0",
"webpack": "^5.94.0",
Expand Down
7 changes: 6 additions & 1 deletion src/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export default class ShakaTracker extends nrvideo.VideoTracker {
return this.player.getPlaybackRate();
}

getContentPlayhead() {}

getTrack() {
var tracks = this.player.getVariantTracks();
for (var i in tracks) {
Expand Down Expand Up @@ -168,7 +170,10 @@ export default class ShakaTracker extends nrvideo.VideoTracker {
}

onError(e) {
this.sendError(e.detail);
const error = e.detail;
const errorCode = error.code;
const errorName = error.message;
this.sendError({ errorCode, errorName });
}

onEnded() {
Expand Down

0 comments on commit f2b6eb0

Please sign in to comment.