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

Add events for underflow and live resync #989

Merged
merged 2 commits into from
Feb 2, 2017

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented Feb 1, 2017

For QoS measurement purposes, it may be useful to know how often the playback watcher is activating. Add new events for when the player falls off the back of the live window or stalls due to a video buffer gap.

For QoS measurement purposes, it may be useful to know how often the playback watcher is activating. Add new events for when the player falls off the back of the live window or stalls due to a video buffer gap.
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.

Minor comments, but looks good to me


currentTime = 12;
seekable[0] = [0, 100];
buffered[0] = [0, 9];
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor, but can do buffered = [[0, 9], [10, 20]];

buffered[0] = [0, 9];
buffered.push([10, 20]);
playbackWatcher.waiting_();
assert.equal(videounderflow, 1, 'triggered a videounderflow event');
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth verifying liveresync stays the same at the end.

Minor cleanup and an additional assertion.
@dmlap dmlap merged commit c607152 into videojs:master Feb 2, 2017
@dmlap dmlap deleted the playback-watcher-events branch February 2, 2017 17:01
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.

2 participants