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

Set _isSeeking in seekBySeconds even when _hasEnded is set #192

Merged
merged 1 commit into from
Nov 6, 2015

Conversation

imbcmdth
Copy link
Member

@imbcmdth imbcmdth commented Nov 5, 2015

We were in a situation where if endOfStream was called (setting _hasEnded to true) and then we tried to replay by seeking to time 0, we wouldn't notify the player that seek had ended and the spinner would continue to show and playback would be broken until it timed out.

@gkatsev
Copy link
Member

gkatsev commented Nov 5, 2015

LGTM

@@ -356,6 +356,7 @@ package com.videojs.providers{
}
else if(_hasEnded)
{
_isSeeking = true;
Copy link
Member

Choose a reason for hiding this comment

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

Seems like this should be pulled up out of the branches of these conditionals entirely.

Copy link
Member

Choose a reason for hiding this comment

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

@imbcmdth pointed out to me that both branches have conditions which may not be mutually exclusive.

dmlap added a commit that referenced this pull request Nov 6, 2015
Set _isSeeking in seekBySeconds even when _hasEnded is set
@dmlap dmlap merged commit 78bd5c7 into videojs:master Nov 6, 2015
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