Skip to content
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 seekable attribute #2207

Closed
wants to merge 1 commit into from
Closed

Add seekable attribute #2207

wants to merge 1 commit into from

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented May 28, 2015

Export the seekable player attribute and implement it based on duration in the Flash tech.

Export the seekable player attribute and implement it based on duration in the Flash tech.
@heff
Copy link
Member

heff commented May 28, 2015

This is kind of an uncomfortable change for a patch release. What's it going to be used for?

@dmlap
Copy link
Member Author

dmlap commented May 28, 2015

It's not really possible to build a (standards-based) live DVR UI without seekable. I agree it's not a good time in the release cycle to make a change like this but it's going to be a while until contrib-hls can migrate to 5.0.

@@ -617,6 +617,18 @@ vjs.round = function(num, dec) {
* @private
*/
vjs.createTimeRange = function(start, end){
if (start === undefined && end === undefined) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why we wouldn't throw an error when you try to create a time range with no start/end values, instead of creating one that throws errors later?

Copy link
Member

Choose a reason for hiding this comment

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

Ok, apparently that's how native time ranges work.

var v = document.createElement('video').buffered.start(0);

Uncaught DOMException: Failed to execute 'start' on 'TimeRanges': The index provided (0) is greater than or equal to the maximum bound (0).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, that's what I was emulating.

@dmlap
Copy link
Member Author

dmlap commented Jun 1, 2015

Offline 👍 from @heff. We don't want to make enhancements like this to 4.x right now but 5.0 is not at release candidate yet.

dmlap added a commit to dmlap/video.js that referenced this pull request Jun 1, 2015
@dmlap dmlap closed this Jun 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants