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

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

Open
BonBonSlick opened this issue Aug 14, 2019 · 1 comment
Open

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

BonBonSlick opened this issue Aug 14, 2019 · 1 comment

Comments

@BonBonSlick
Copy link

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.

#102

@AdamKorcz
Copy link

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

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

2 participants