kmoskwiak / videojs-resolution-switcher

Resolution switcher adds the ability to select the video quality in video.js player.
https://kmoskwiak.github.io/videojs-resolution-switcher/
Other
403 stars 243 forks source link

This plugin dead DO NOT USE for v6+ videojs #133

Open BonBonSlick opened 5 years ago

BonBonSlick commented 5 years ago
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

AdamKorcz commented 5 years ago

Thanks @BonBonSlick . I would have wasted a lot more time on debugging if it wasn't for your message.