Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

the qualityLevels labes remain when src change common video #60

Open
@R8KwEwN2hvrhY

Description

@R8KwEwN2hvrhY

just like than
屏幕截图 2023-02-09 214354

i use js like that to solve it

player.on('canplaythrough',function(){
  if (player.qualityLevels().length==0) {
        document.getElementsByClassName("vjs-http-source-selector vjs-menu-button vjs-menu-button-popup vjs-control vjs-button")[0].style.display = 'none';
        }
  else {
        document.getElementsByClassName("vjs-http-source-selector vjs-menu-button vjs-menu-button-popup vjs-control vjs-button")[0].style.display = 'block';
        };
    });

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions