Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo in the repo not working #71

Open
dvic opened this issue Mar 16, 2021 · 3 comments
Open

demo in the repo not working #71

dvic opened this issue Mar 16, 2021 · 3 comments

Comments

@dvic
Copy link

dvic commented Mar 16, 2021

I had problems installing this plugin and making it work so I looked at the demo, but in that example the quality selector is also not being shown:

image

Any idea what's missing here?

@lycoch
Copy link

lycoch commented Oct 1, 2021

Hello,
same issue here, the player works but no quality selector
thanks for any help

<body>
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.0.0/video-js.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.0.0/video.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.15.0/videojs-contrib-hls.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/js/index.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/quality-selector.css" rel="stylesheet" />

   <video id="mainvideo" class="video-js vjs-default-skin" controls preload="auto" data-setup='{}'>
      <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.720p.webm" type="video/webm" label="720P">
      <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.480p.webm" type="video/webm" label="480P" selected="true">
      <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.360p.webm" type="video/webm" label="360P">
      <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.240p.webm" type="video/webm" label="240P">
   </video>

<script>
var options, player;
options = {
   controlBar: {
      children: [
         'playToggle',
         'progressControl',
         'volumePanel',
         'qualitySelector',
         'fullscreenToggle',
      ],
   },
};
player = videojs('mainvideo', options);
player.play();
</script>
</body>

@ignacio-dev
Copy link

Have you tried player.controlBar.addChild('QualitySelector') ?

@sebabratakundu
Copy link

same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants