-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add stats videojs plugin #3958
add stats videojs plugin #3958
Conversation
22faed0
to
0af362b
Compare
if (this.source === 'webtorrent') { | ||
const progress = this.player_.webtorrent().getTorrent()?.progress | ||
const videoFile = this.player_.webtorrent().getCurrentVideoFile() | ||
videoFile.metadata = metadata[videoFile.fileUrl] = videoFile.metadata || metadata[videoFile.fileUrl] || videoFile.metadataUrl && await fetch(videoFile.metadataUrl).then(res => res.json()) | ||
this.list.innerHTML = getListTemplate(this.options_, this.player_, { playerNetworkInfo: this.playerNetworkInfo, videoFile, progress }) | ||
} else { | ||
this.list.innerHTML = getListTemplate(this.options_, this.player_, { playerNetworkInfo: this.playerNetworkInfo }) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Chocobozzz I'm wondering how to get the current progress of buffered data, and more importantly the current video file in the case of p2p-media-loader
use; I searched through the code, to no avail 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to give the ability to provide the hlsjs
object in the p2p-media-loader-plugin.ts
so you can get it here and use all available information
0b17f4c
to
cc9a2f5
Compare
cc9a2f5
to
b184ac2
Compare
b184ac2
to
8a324ea
Compare
Description
This PR adds a "stats for nerds" panel, like YouTube provides, minus a few things: no mystery text, no exposure of an optimal resolution, no loudness normalization (we don't have that yet), no fancy graphs (yet).
It serves as a good debug tool for advanced users, where we could move some of the information we currently display in the bar (like p2p traffic) - taking precious space.
Related issues
closes #1788
Has this been tested?
TODO:
Screenshots
Don't mind the fluffy cat 😉