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

Set hasEnded false on a seek, remove another seek after end request #172

Merged
merged 1 commit into from
Jul 30, 2015

Conversation

bc-bbay
Copy link
Contributor

@bc-bbay bc-bbay commented Jul 27, 2015

No description provided.

@@ -301,7 +301,6 @@ package com.videojs.providers{
// if the asset is already loading
if (_hasEnded) {
_hasEnded = false;
_ns.seek(0);
Copy link
Member

Choose a reason for hiding this comment

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

This is what makes it that if you seek immediately after ending, you actually start at 0 instead of where you seeked?
Though, changing this seems like it might break replay functionality when you hit play after the video has ended.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looping continues to work fine.

I'm not sure when this code is actually being used, as it doesn't seem to be interfering with anything, but since we've decided to let the player (not the tech) decide when/whether to reset, this should still go.

@gkatsev
Copy link
Member

gkatsev commented Jul 28, 2015

LGTM.

bc-bbay added a commit that referenced this pull request Jul 30, 2015
Set hasEnded false on a seek, remove another seek after end request
@bc-bbay bc-bbay merged commit 016da42 into master Jul 30, 2015
@bc-bbay bc-bbay deleted the hasEnded-false branch July 30, 2015 18:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants