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

Error: plugin "videoJsResolutionSwitcher" does not exist in angular #139

Open
haseeb-zechtech opened this issue Feb 21, 2020 · 4 comments
Open

Comments

@haseeb-zechtech
Copy link

I have install videojs and videojs-resolution-switcher from npm and trying to use this plugin for adaptive video formats but its show error. i am using angular 6 and have installed latest version of videojs . If someone know solution Please help
Someone also try to make this but failed I have attached stackblitz link blow:
https://stackblitz.com/edit/angular-btj4zw?file=src%2Fapp%2Fapp.component.ts

My code
import videojs from 'video.js';
import "@videojs/http-streaming";
import 'videojs-contrib-quality-levels';
import 'videojs-resolution-switcher';

const options = {
'controls': true,
'autoplay': false,
'controlBar': {
'children': {
'playToggle': true,

      'progressControl': true,
      'currentTimeDisplay': true,
      'timeDivider': true,
      'durationDisplay': true,
      'volumePanel': {
        'inline': true,
      },

      'fullscreenToggle': true,

    },

  },
  'plugins': {
    'videoJsResolutionSwitcher': {
      'default': 'high',
      'dynamicLabel': true
    }
  },
  'html5': {
    'hls': {
      'withCredentials': true,
    }
  },


};
var palayer = setInterval(() => {
  try {
    this.vjs = videojs('my-player', options);
    //this.vjs.hlsQualitySelector();


    $('body .vjs-volume-panel').addClass('vjs-hover');
    $('body .vjs-volume-panel').on('mouseout', function () {
      $('.vjs-volume-panel').addClass('vjs-hover');

    });


    if (this.vjs) {

      clearInterval(palayer);
      //console.log('its worls');ss
    }
  } catch (err) {
    console.log(err);
  }
}, 50);
@haseeb-zechtech haseeb-zechtech changed the title Error: plugin "videoJsResolutionSwitcher" does not exist Error: plugin "videoJsResolutionSwitcher" does not exist in angular Feb 21, 2020
@tavisca-asingla
Copy link

Did you get any solution? I am also facing the same issue.

@ssqsunqin
Copy link

解决没

@linlinjie
Copy link

版本问题,请用 5.x 版本的videojs

@Middeaslam
Copy link

I am also facing the same issue.

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

5 participants