Change logic for original option on livestream
This commit is contained in:
parent
daaa787f97
commit
8b443d343c
1 changed files with 5 additions and 1 deletions
|
@ -186,7 +186,11 @@ class HlsQualitySelectorPlugin {
|
|||
selected: defaultQuality ? currentHeight === defaultQuality : undefined,
|
||||
});
|
||||
|
||||
if (defaultQuality && !nextLowestQualityItem && currentHeight <= defaultQuality) {
|
||||
const isLiveOriginal = defaultQuality && defaultQuality === QUALITY_OPTIONS.ORIGINAL && player.isLivestream;
|
||||
const shouldCheckHeight =
|
||||
defaultQuality && !nextLowestQualityItem && (currentHeight <= defaultQuality || isLiveOriginal);
|
||||
|
||||
if (shouldCheckHeight) {
|
||||
nextLowestQualityItem = levelItem;
|
||||
nextLowestQualityItemObj = {
|
||||
label: heightStr,
|
||||
|
|
Loading…
Reference in a new issue