Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

HLS Segment Edge Seeking #71

Merged
merged 11 commits into from
Feb 18, 2014
Merged

HLS Segment Edge Seeking #71

merged 11 commits into from
Feb 18, 2014

Conversation

tomjohnson916
Copy link
Contributor

Needed to close out some test behavior on videojs-contrib-hls plugin.

tomjohnson916 and others added 6 commits January 7, 2014 22:11
HTML expects buffered end time to be reported relative to the "start" of the video but the netstream reports it relative to the playhead position. In the model, add the buffered value coming from the netstream to the current playtime before returning it to javascript.
@@ -53,8 +53,8 @@ package{
_app.model.stageRect = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);

// add content-menu version info
var _ctxVersion:ContextMenuItem = new ContextMenuItem("VideoJS Flash Component v4.0.0", false, false);
var _ctxAbout:ContextMenuItem = new ContextMenuItem("Copyright © 2013 Brightcove, Inc.", false, false);
var _ctxVersion:ContextMenuItem = new ContextMenuItem("VideoJS Flash Component v4.0.9", false, false);
Copy link
Member

Choose a reason for hiding this comment

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

Would there be any way we could load this version number in dynamically from the package.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should be able to yes.

Copy link
Member

Choose a reason for hiding this comment

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

Doesn't need to happen now, but that would be cool to set up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#75

@heff
Copy link
Member

heff commented Jan 22, 2014

Made some comments that should be quick updates for the most part. This has a few changes in it that seem like they could affect standard mp4 playback, so I want to make sure this gets tested in IE8/Firefox, but otherwise it looks good to me.

tomjohnson916 and others added 5 commits January 22, 2014 14:04
Previously, the position of the playhead was being added onto the buffered time both inside the HTTPVideoProvider and the model. Fixed it so that the playhead position is only added once, inside provider.
Instead of requiring an explicit call into the SWF to set the new starting offset for the netstream time, capture it when seekForSeconds is called in HTTPVideoProvider.
In order to distinguish between just running out of buffer and completing the stream when in data generation mode, it's necessary to signal back to the the HTTPVideoProvider. Media sources uses endOfStream to accomplish this so we're exposing that method on the SWF.
@heff heff merged commit c6ccbc7 into master Feb 18, 2014
@dmlap dmlap deleted the feature/hls-seeking branch February 18, 2014 22:06
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.

3 participants