Skip to content
This repository has been 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 opened this issue Feb 9, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@R8KwEwN2hvrhY
Copy link

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';
        };
    });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants