MMM-Screencast icon indicating copy to clipboard operation
MMM-Screencast copied to clipboard

Doesn't work when running serveronly

Open gehrigwilcox opened this issue 5 years ago • 1 comments

From what I understand by reading the error logs, you're spawning an electron window over the existing electron window in order to play the video right? If this is the case, it won't play the video on clients connected to the magic mirror server.

Might I suggest that instead you implement an HTML element in the magic mirror webpage and use javascript sockets to inject the URL into that element so when screen casting to the server, all clients connected get the data?

gehrigwilcox avatar Dec 14 '19 00:12 gehrigwilcox

Hey @lougehrig10, you are correct with how this module works. Unfortunately, you can't really just stick an HTML element (like an iframe) and pass it the URL as the host (domain) serving up the resource might, and in youtube's case will, block the request with their CORS policy.

I originally wanted to do something similar to what you expressed, but couldn't due to this limitation. I am not sure, but can think a bit on how to best solve the serveronly issue you have.

kevinatown avatar Dec 18 '19 16:12 kevinatown