Skip to content

Commit

Permalink
changelog updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mlychndnnr committed Dec 19, 2024
1 parent 2c58720 commit dc82498
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ coverage/

# logs
*.log

# ignore agent.js
samples/agent.js
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [0.1.0]

- Playhead attribute added

## [0.1.0] -

- First Version
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "newrelic-video-dash",
"version": "0.1.0",
"version": "0.1.1",
"description": "New relic tracker for dash player",
"main": "src/index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export default class DashTracker extends nrvideo.VideoTracker {
return this.player.preload();
}

getPlayhead() {
return this.player.time() * 1000; // in milliseconds
}

isMuted() {
return this.player.isMuted();
}
Expand Down

0 comments on commit dc82498

Please sign in to comment.