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

Something went wrong

Open robertalexa opened this issue 4 years ago • 2 comments

Hi @kevinatown

Thank you for pointing out the obvious earlier about the config position. I feel embarassed.

I am however encountering an issue and I am not sure how much useful information i can provide.

I can "successfully" cast to the device (although some times the device name appears more than once, guess the server remains open), the youtube popup shows, then it says Account name successfully connected to TV, the video thumbnail flickers between 1 and 3 times then it says Something went wrong.

See screenshot: image

I did some reading and found that some uploaders dont enable remote playing.

Went and played random videos. I have managed to get this video to play. https://www.youtube.com/watch?v=VKGYWK1ABmU

But only once.... After that it fails with the same error message as above.

In the meantime - on the phone image image

I proceeded to disable all my plugins except for clock (purely so i can see the mirror loaded). Same thing happens. But at least i know it is not conflicting with something else

Here is the output: `pi@raspberrypi:~/MagicMirror $ npm start dev

[email protected] start /home/pi/MagicMirror ./run-start.sh "dev"

[21:44:49.758] [LOG] Starting MagicMirror: v2.10.1 [21:44:49.773] [LOG] Loading config ... [21:44:49.786] [LOG] Loading module helpers ... [21:44:49.788] [LOG] No helper found for module: clock. [21:44:50.384] [LOG] Initializing new module helper ... [21:44:50.386] [LOG] Module helper loaded: MMM-Screencast [21:44:50.387] [LOG] All module helpers loaded. [21:44:50.389] [LOG] Starting server on port 8080 ... [21:44:50.417] [LOG] Server started ... [21:44:50.419] [LOG] Connecting socket for: MMM-Screencast [21:44:50.420] [LOG] Sockets connected & modules started ... [21:44:50.658] [LOG] Launching application. [21:45:21.441] [LOG] screencast stdout:

[email protected] start /home/pi/MagicMirror/modules/MMM-Screencast electron app.js

[21:46:10.939] [LOG] Got request to stop YouTube with pid: run [21:46:11.148] [LOG] closing code: 0 [21:46:19.775] [LOG] screencast stdout:

[email protected] start /home/pi/MagicMirror/modules/MMM-Screencast electron app.js

[21:55:42.899] [LOG] Got request to stop YouTube with pid: run [21:55:43.106] [LOG] closing code: 0 `

  • I am using a RPI 3B+ Buster
  • NPM version 6.14.0
  • Node version 10.15.2

Any thoughts, or anything you would like me to run to test this?

Many thanks and thank you for your work!

robertalexa avatar Mar 03 '20 21:03 robertalexa

Further play with it.

Rebooted the pi completely.

Tried the same video. Same error.

Chose another video. Started playing fine.

Went back to the original video. Plays fine.

This sounds more like a google problem than a module problem, but i feel maybe it is worth asking for your opinion.

Thank you in advance

robertalexa avatar Mar 03 '20 22:03 robertalexa

And some more information, might help other people.

All of the above testing was done on a Raspberry Pi 3B+ which, in all respects, turns very slow when you give it a lot to do.

Today I have swapped all my setup into a RPI 4B 4GB and..... surprise surprise. No video ever failed to cast so far.

That being said, i am still playing with it to see if i can have the same issues occur, but i really suspect the culprit is the lack of resources.

To give you some facts, free ram on RPI3 went down to 3-4% with the youtube player on. RPI4 down to 60%... So yeah..

I will let you know if I find anything else.

robertalexa avatar Mar 04 '20 23:03 robertalexa