videojs-resolution-switcher
videojs-resolution-switcher copied to clipboard
This plugin dead DO NOT USE for v6+ videojs
TypeError: videojs.getComponent is not a function
at eval (videojs-resolution-switcher.js:41)
at eval (videojs-resolution-switcher.js:357)
at eval (videojs-resolution-switcher.js:358)
at Object../node_modules/videojs-resolution-switcher/lib/videojs-resolution-switcher.js (2.js:588)
at __webpack_require__ (main.js:770)
at fn (main.js:130)
at eval (video.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options:6)
at Module../node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./src/components/public/partials/video.vue?vue&type=script&lang=js& (5.js:23)
at __webpack_require__ (main.js:770)
at fn (main.js:130)
"video.js": "^7.6.0",
"videojs-resolution-switcher": "^0.4.2",
import videojs from 'video.js';
import videoJsResolutionSwitcher from 'videojs-resolution-switcher';
...
},
mounted() {
const $this = this;
console.log(videoJsResolutionSwitcher);
videojs(
$this.$refs.videoPlayer, {
autoplay: true,
controls: true,
fluid: true,
poster: posterUrl,
},
function onPlayerReady() {
console.log('onPlayerReady', $this.currentEpisodeDetails);
});
Plugin is dead DO NOT USE it, it MUST BE mentioned in README! But you can see it by the last commit date.
https://github.com/kmoskwiak/videojs-resolution-switcher/issues/102
Thanks @BonBonSlick . I would have wasted a lot more time on debugging if it wasn't for your message.