Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
videojs-quality-selector-hls-custom
Advanced tools
This is a Plugin For VideoJS 8+ To select Quality on the Video if available
This is a Plugin For VideoJS 8+ To select Quality on the Video if available
This is a complete FORK by https://github.com/chrisboustead from https://github.com/chrisboustead/videojs-hls-quality-selector
Changelog
videojs-contrib-quality-levels ^4
npm i videojs-contrib-quality-levels
npm install --save videojs-quality-selector-hls
To include videojs-quality-selector-hls on your website or web application, use any of the following methods.
<script>
TagThis is the simplest case. Get the script in whatever way you prefer and include the plugin after you include video.js, so that the videojs
global is available.
<script src="//path/to/video.min.js"></script>
<script src="//path/to/videojs-quality-selector-hls.min.js"></script>
<script>
var player = videojs('my-video');
player.qualitySelectorHls();
</script>
When using with Browserify, install videojs-quality-selector-hls via npm and require
the plugin as you would any other module.
var videojs = require('video.js');
// The actual plugin function is exported by this module, but it is also
// attached to the `Player.prototype`; so, there is no need to assign it
// to a variable.
require('videojs-quality-selector-hls');
var player = videojs('my-video');
player.qualitySelectorHls();
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and require
the plugin as you normally would:
require(['video.js', 'videojs-quality-selector-hls'], function(videojs) {
var player = videojs('my-video');
player.qualitySelectorHls();
});
<script setup>
import 'video.js/dist/video-js.css'
import { ref,onMounted } from 'vue';
import videojs from 'video.js';
import 'videojs-contrib-quality-levels';
import qalitySelectorHls from 'videojs-quality-selector-hls'
const videoPlayer = ref(null)
onMounted(()=>{
// In case an error where qualitySelectorHls not found
videojs.registerPlugin('qalitySelectorHls',qalitySelectorHls);
const player = videojs(videoPlayer.value)
player.qalitySelectorHls()
})
</script>
boolean
- falseSet to true to display the currently selected resolution in the menu button. When not enabled, displayed an included VJS "HD" icon.
integer
Set this to override the default positioning of the menu button in the control bar relative to the other components in the control bar.
string
- "vjs-icon-hd"Set this to one of the custom VJS icons (https://videojs.github.io/font/) to override the icon for the menu button.
var player = videojs('my-video');
player.qualitySelectorHls({
displayCurrentQuality: true,
placementIndex: 2,
vjsIconClass: 'vjs-icon-hd'
});
MIT. Copyright (c) Tomexsans Evaristo <t2t.exe@gmail.com>
FAQs
This is a Plugin For VideoJS 8+ To select Quality on the Video if available
The npm package videojs-quality-selector-hls-custom receives a total of 0 weekly downloads. As such, videojs-quality-selector-hls-custom popularity was classified as not popular.
We found that videojs-quality-selector-hls-custom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.