-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pillarbox-debug-panel): debug panel component for playback metrics
Introduces a debug panel that provides real-time playback metrics for enhanced monitoring and debugging of the video player. This panel can be added to the player interface only when necessary, allowing developers to keep track of key playback statistics during video streaming. To integrate the debug panel into the player: ```javascript import videojs from 'video.js'; import '@srgssr/pillarbox-debug-panel'; const player = videojs('my-player', { pillarboxDebugPanel: true }); ``` Changes: - Implemented a debug panel displaying metrics such as buffer size, media duration, playback position, bandwidth, bitrate, codecs, framerate, total frames, dropped frames, resolution, and timestamp. - Added a canvas element to the panel for visualizing the evolution of buffer health, bitrate, and bandwidth. - Used VHS API for data retrieval when supported, and native APIs for browsers utilizing native video playback (such as HLS in Safari).
- Loading branch information
Showing
22 changed files
with
1,173 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../babel.config.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"branches": ["main"], | ||
"extends": "semantic-release-monorepo", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"parserOpts": { | ||
"noteKeywords": [ | ||
"BREAKING CHANGE", | ||
"BREAKING CHANGES", | ||
"BREAKING" | ||
] | ||
}, | ||
"presetConfig": { | ||
"types": [ | ||
{ | ||
"type": "breaking", | ||
"section": "Breaking Changes ❗", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "feat", | ||
"section": "New Features 🚀", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Enhancements and Bug Fixes 🐛", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "Docs 📖", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "style", | ||
"section": "Styles 🎨", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "Refactor 🔩", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "Performances ⚡️", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "Tests ✅", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "ci", | ||
"section": "CI 🔁", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "Chore 🧹", | ||
"hidden": false | ||
} | ||
] | ||
}, | ||
"writerOpts": { | ||
"groupBy": "type", | ||
"commitGroupsSort": [ | ||
"breaking", | ||
"feat", | ||
"fix" | ||
] | ||
} | ||
} | ||
], | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "CHANGELOG.md" | ||
} | ||
], | ||
"@semantic-release/npm", | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"package.json", | ||
"package-lock.json", | ||
"CHANGELOG.md" | ||
], | ||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"assets": [ | ||
{ | ||
"path": "dist/**/*" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 SRG SSR | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.