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

isLowestEnabledRendition returns true when there are redundant streams #1004

Merged
merged 2 commits into from
Feb 15, 2017

Conversation

zhuangs
Copy link
Contributor

@zhuangs zhuangs commented Feb 10, 2017

Description

PlaylistLoader#isLowestEnabledRendition_ never returns true when there are redundant streams

Specific Changes proposed

return true when the lowest "rendition set" (all renditions sharing the same bandwidth) is selected.


}).length > 1);
}).length >= 1);
Copy link
Member

Choose a reason for hiding this comment

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

I think this boolean logic could use some cleaning up. Right now it says length not greater than or equal to one which is difficult to wrap my brain around. I think a better one is simply length is zero.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, that will be much clear

@mjneil
Copy link
Contributor

mjneil commented Feb 14, 2017

LGTM

@imbcmdth imbcmdth merged commit 8afcc7c into videojs:master Feb 15, 2017
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