silvermine / videojs-chromecast

MIT License
149 stars 73 forks source link

Using plugin with VueJS #79

Closed Brandonza closed 1 year ago

Brandonza commented 4 years ago

Hi

I am trying to use this plugin with VueJS but cannot seem to get it to work, can anyone point to be some helpful documentation or give me some guidance, please?

I have run: npm install @silvermine/videojs-chromecast

Extracts from my Vue Component: import videojs from 'video.js' import '@silvermine/videojs-chromecast/src/scss/videojs-chromecast.scss' require('@silvermine/videojs-chromecast')(videojs);

I get his error when trying npm run serve: These relative modules were not found:

Lucastro99 commented 3 years ago

algum update?

alekorhonen commented 3 years ago

I got around it by just copying the scss files to my Vue project's assets folder.

yokuze commented 1 year ago

You can change the path to the image assets to whatever your project needs by overriding these SCSS variables: https://github.com/silvermine/videojs-chromecast/blob/master/src/scss/_chromecastButton.scss#L2