Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Bubble progress events #978

Merged
merged 1 commit into from
Jan 25, 2017
Merged

Bubble progress events #978

merged 1 commit into from
Jan 25, 2017

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented Jan 25, 2017

If the segment request triggers progress events (that is, XHR2 is supported), bubble those up to the tech. This makes it clearer that buffering is happening even on very slow connections.

If the segment request triggers progress events (that is, XHR2 is supported), bubble those up to the tech. This makes it clearer that buffering is happening even on very slow connections.
Copy link
Contributor

@gesinger gesinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good, but as a really minor note,

player.on('progress', function() {
may report an older bandwidth multiple times in the stats page

@imbcmdth
Copy link
Member

LGTM

@gkatsev
Copy link
Member

gkatsev commented Jan 25, 2017

We should figure out how to use the event object in the progress listener to have better bandwidth reporting. Particularly around aborted segments. The progress event has a loaded and total attributes which contain the currently loaded amount and the total for what we're downloading.

This definitely should go in another PR, though, but, I thought it would be good to mention here.

@dmlap
Copy link
Member Author

dmlap commented Jan 25, 2017

@gkatsev yeah, that would be cool. Good to note for the future.

@dmlap dmlap merged commit 163dc12 into videojs:master Jan 25, 2017
@dmlap dmlap deleted the more-progress branch January 25, 2017 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants