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

Screen is still visible after disconnecting?

Open LupoLucario opened this issue 4 years ago • 34 comments

After closing the connection (via smartphone), youtube on the mirror is still visible and asks me, if I want to login or not.

Screen

A reconnection is possible and works. But I can not get rid of the window without restarting the mirror :/

LupoLucario avatar Apr 12 '22 17:04 LupoLucario

Hi have the same issue.

Jasa1983 avatar Apr 16 '22 14:04 Jasa1983

Same. Works on my other mirror though. I'm running out of ideas. Seems like if I could click continue as guest, it'd be fine, but I already hid my mouse. lol

bobsusedtires avatar Apr 18 '22 12:04 bobsusedtires

It is ONLY the youtube app from my phone. Every other app from phone, or computer, or whatever works fine.

bobsusedtires avatar Apr 18 '22 13:04 bobsusedtires

Having same issue anyone got solution for this??

vinaynaik121 avatar May 04 '22 16:05 vinaynaik121

Anyone find a fix?

mugen2220 avatar May 17 '22 02:05 mugen2220

I cloned the SD from my other mirror and tried it on new hardware. Still have the screen coming up on the new one, while my old mirror is fine. Has to be something silly.,..

bobsusedtires avatar May 18 '22 10:05 bobsusedtires

Bonjour, j'ai le même souci sur une nouvelle installation. Quelqu'un à trouvé une solution ? Merci :)

Hello, I have the same problem on a new installation. Has anyone found a solution? Thanks :)

Davrent avatar Jul 16 '22 09:07 Davrent

@LupoLucario Any luck with this issue? @kevinatown any suggestion how we could get this working?

amithapa avatar Jul 17 '22 16:07 amithapa

I tried several things: different devices, networks and circumstances but without any luck so far.

LupoLucario avatar Jul 18 '22 05:07 LupoLucario

Hi y'all, sorry about the delay on this, been busy with work, house, life, and some other projects. Anyways..

Some more information would be greatly appreciated, such as:

  • @LupoLucario what version of MagicMirror are you using?
  • are you able to reconnect to your MagicMirror with you phone and then "Disconnect"?
  • Can you disconnect before the video ends? and does MMM-Screencast disappear?
  • Would it be possible to add some logs of you starting up the MM, running screen cast, and potentially disconnecting?

You can do the log like so: npm start >> log.log and stick that log in here? Thanks!

kevinatown avatar Jul 23 '22 23:07 kevinatown

Hi kevin,

  • the MagicMirror version I use is 2.20.0
  • there is no difference when I reconnect after first disconnecting and try to disconnect again
  • also when I disconnect while the video is still playing it shows the screen I uploaded in the first post of the thread

Here is the log of starting the mirror, connecting with the phone (not playing any video), and disconnecting. For a better readability I disabled all of my other modules:

> [email protected] start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[07.08.2022 16:34.20.222] [LOG]   Starting MagicMirror: v2.20.0
[07.08.2022 16:34.20.230] [LOG]   Loading config ...
[07.08.2022 16:34.20.237] [LOG]   Loading module helpers ...
[07.08.2022 16:34.20.392] [LOG]   Initializing new module helper ...
[07.08.2022 16:34.20.394] [LOG]   Module helper loaded: MMM-Screencast
[07.08.2022 16:34.20.395] [LOG]   All module helpers loaded.
[07.08.2022 16:34.20.523] [LOG]   Starting server on port 8086 ... 
[07.08.2022 16:34.20.536] [LOG]   Server started ...
[07.08.2022 16:34.20.538] [LOG]   Connecting socket for: MMM-Screencast
[07.08.2022 16:34.20.540] [LOG]   Sockets connected & modules started ...
[07.08.2022 16:34.20.846] [LOG]   Launching application.
[07.08.2022 16:34.36.195] [LOG]   screencast stdout: 
> [email protected] start
> electron app.js


[07.08.2022 16:34.38.080] [LOG]   screencast stderr: (node:18655) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information

Thank you for your help =)

LupoLucario avatar Aug 07 '22 14:08 LupoLucario

I got the same behavior.

goldyfruit avatar Sep 19 '22 16:09 goldyfruit

I have the same problem...please @kevinatown help us! Thanks

Egnos87 avatar Sep 30 '22 18:09 Egnos87

This is happening for me also. @kevinatown

mrwertman avatar Oct 10 '22 14:10 mrwertman

Started happening on my other install that was working before.

bobsusedtires avatar Oct 10 '22 15:10 bobsusedtires

Having the same issue - is there a fix?

Dresch360 avatar Oct 14 '22 09:10 Dresch360

I did a PR here: https://github.com/kevinatown/MMM-Screencast/pull/132 Waiting for @kevinatown to look at it.

goldyfruit avatar Oct 14 '22 11:10 goldyfruit

I did a PR here: #128 Waiting for @kevinatown to look at it.

Does this fork https://github.com/amirthapa27/MMM-Screencast solve the problem?

Thanks

Egnos87 avatar Oct 14 '22 21:10 Egnos87

I did a PR here: #128 Waiting for @kevinatown to look at it.

Does this fork https://github.com/amirthapa27/MMM-Screencast solve the problem?

Thanks

Yes but it opens the developer tools.

You can use https://github.com/smartgic/MMM-Screencast with the fix_window_still_visible branch.

goldyfruit avatar Oct 15 '22 01:10 goldyfruit

I did a PR here: #128 Waiting for @kevinatown to look at it.

Does this fork https://github.com/amirthapa27/MMM-Screencast solve the problem? Thanks

Yes but it opens the developer tools.

You can use https://github.com/smartgic/MMM-Screencast with the fix_window_still_visible branch.

Ok, thanks. The other big problem (perhaps worse than the issue #128 ...) is the one described in this issue #131 , that is the impossibility to connect.

Is there a solutions?

Egnos87 avatar Oct 16 '22 17:10 Egnos87

The connecting issue fixes itself when you do npm audit fix - - force.

But the window still visible problem creeps back in. :(

SyedIntekhab avatar Nov 06 '22 06:11 SyedIntekhab

I tried the fix of @goldyfruit with Raspberry OS Buster and Bullseye. In my case it works with both os versions

Tom-Hirschberger avatar Nov 06 '22 13:11 Tom-Hirschberger

I am having the same issue. After closing the connection (via smartphone), youtube on the mirror. fix_window_still_visible branch does not solve the problem. Any ideas?

marsul23 avatar Jul 11 '23 21:07 marsul23

For me, the fork of @goldyfruit fixed the error of closing the module. However, I still have connection issues after connecting to the mirror once. Only a restart of MM2 fixes the error, which means I have to restart the mirror after each screencast, which kind of sucks.

devtobi avatar Sep 13 '23 13:09 devtobi

Hello! Will here be update which hide module after translation ending?

Goggite avatar Dec 14 '23 10:12 Goggite

I've used the branch: fix_window_still_visible but it doesn't help my situation. The Youtube window remains open after I close the player on the phone.

Raspberry Pi 4, x64 6.1.21-v8+ MagicMirror 2.26.0

Skyview79 avatar Jan 24 '24 17:01 Skyview79