silvermine / videojs-chromecast

MIT License
148 stars 75 forks source link

Has anyone got this working with angular? #90

Closed khan725 closed 3 years ago

khan725 commented 3 years ago

I am getting this error when applying this require('@silvermine/videojs-chromecast')(videojs); Uncaught TypeError: Cannot set property 'Class' of undefined at class.js:5 at Object../node_modules/class.extend/lib/class.js (class.js:70) at __webpack_require__ (bootstrap:79) at Object../node_modules/@silvermine/videojs-chromecast/src/js/chromecast/ChromecastSessionManager.js (ChromecastSessionManager.js:3) at __webpack_require__ (bootstrap:79) at Object../node_modules/@silvermine/videojs-chromecast/src/js/tech/ChromecastTech.js (ChromecastTech.js:3) at __webpack_require__ (bootstrap:79) at Object../node_modules/@silvermine/videojs-chromecast/src/js/index.js (index.js:7) at __webpack_require__ (bootstrap:79) at Module../src/app/views/media-player/vjs-player.component.ts (video-player.component.ts:17)

eugeneb007 commented 3 years ago

I have the same issue. I can't see declarations for videojs-chromecast

kontrollanten commented 3 years ago

@khan725 Did you solve this? I'd like to see your solution.

dwassing commented 3 years ago

@kontrollanten Hey, I happened to stumble upon this today while looking for something similar. I have an angular project running this plugin (my issue lies with connecting with a custom receiverAppId, the sample implementation does not work for me). Send me an email (see my profile) if you'd like to discuss this, Swedish works fine too :)

Edit: And just because I posted here, I got the sample receiverAppId to run with the plugin minutes after... offer is still open though!