tomexsans / videojs-quality-selector-hls Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Is it possible to setting plugin like that?
This plugin doesn't work at all due to a change compared to the original version. The event listener is only bound after the ready event is observed, but by then the quality level events have been already sent, so this plugin misses them all.
I just looked into a project I am working on and wanted to finally upgrade to Video.JS 8โฆ but the previous quality selector still is stuck at v7 and incompatible with v8.
So, I wanted to thank you for the effort to upgrade this package and release it on NPM.
One thing I found in the readme document. In the Vue example you have a bit of a typo (a very consistent one but allas):
qalitySelectorHls
should probably be qualitySelectorHls
.
In this segment:
<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>
Cheers, Chris
When I change quality the new segments are not downloaded, and are only downloaded when I seek ahead or back.
Demo here:
https://stackblitz.com/edit/angular-videojs-nvtfb7?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.