flo80 / MMM-chromecast

MagicMirror Module to cast from server to chromecast
MIT License
45 stars 3 forks source link

MM stops running on Chromecast as soon as I close my browser tab #4

Open kiddyfurby opened 5 years ago

kiddyfurby commented 5 years ago

On Chromecast side, the displayed screen seems to be a mirror of my browser tab - I even see my cursor sometimes.

My browser is Google Chrome Version 76.0.3809.132 on Mac OS X

mdeuerlein commented 5 years ago

Same problem here with Chrome Version 77.0.3865.90 on macOS Mojave.

In the console the following error is thrown:

casting.js:18 Uncaught (in promise) TypeError: Cannot read property 'SessionRequest' of undefined
    at initializeCastApi (casting.js:18)
    at Class.notificationReceived (MMM-chromecast.js:17)
    at sendNotification (main.js:95)
    at main.js:63`
wolfen351 commented 4 years ago

Same problem here Chrome Browser Version 83.0.4103.116 (Official Build) (64-bit) on Ubuntu

I guess the api has changed and this just needs an update?

wolfen351 commented 4 years ago

I looked around on the internet and it seems that if you run the site as https, this issue goes away

edmondchiu92 commented 4 years ago

Any tips on getting the site to load as https? I get "This site can’t provide a secure connection" so presumably there is some setup to do?

wolfen351 commented 4 years ago

My solution was to load it up behind a nginx reverse proxy, but I think there is a way to convince it to start as HTTPS built in

wolfen351 commented 4 years ago

Also, confirmed, it works fine on the chromecast as https :)