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

After Installation: Uncaught TypeError: Cannot read property 'substr' of undefined #67

Open
Vulcanostrol opened this issue Apr 17, 2021 · 0 comments
Labels

Comments

@Vulcanostrol
Copy link

Vulcanostrol commented Apr 17, 2021

Hi, this looks like a great library, but I have trouble installing it with Vue.

I have run npm install chromecast-api and after this, ran the following code from the tutorial:

const ChromecastAPI = require('chromecast-api')
 
const client = new ChromecastAPI()
 
client.on('device', function (device) {
  var mediaURL = 'http://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4';
 
  device.play(mediaURL, function (err) {
    if (!err) console.log('Playing in your chromecast')
  })
})

When opening the app, I get the following error in the Chrome developer console:

image

It looks like it already occurs when importing the library, as something as short as new ChromecastAPI() also gives the error. This is most likely an installation issue or a incompatibility with another installed NPM package in my part.

Is this a known issue? Thanks.

Note: #34 looks similar

@alxhotel alxhotel added the bug label Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants