Skip to content

Commit

Permalink
feat: add frameRate property to the representation class. (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjanblaszczyk authored Sep 14, 2022
1 parent 7e89b55 commit 27a970c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 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 @@ -59,8 +59,8 @@
"@videojs/vhs-utils": "3.0.5",
"aes-decrypter": "3.1.3",
"global": "^4.4.0",
"m3u8-parser": "4.7.1",
"mpd-parser": "0.21.1",
"m3u8-parser": "4.8.0",
"mpd-parser": "0.22.0",
"mux.js": "6.0.1",
"video.js": "^6 || ^7"
},
Expand Down
1 change: 1 addition & 0 deletions src/rendition-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Representation {
this.height = resolution && resolution.height;

this.bandwidth = playlist.attributes.BANDWIDTH;
this.frameRate = playlist.attributes['FRAME-RATE'];
}

this.codecs = codecsForPlaylist(mpc.master(), playlist);
Expand Down

0 comments on commit 27a970c

Please sign in to comment.