vbaicu / mMusicCast

Chromecast emulator that works on any platform. Stream videos from youtube to raspberry pi or any computer with the chromecast protocol.
Creative Commons Zero v1.0 Universal
173 stars 26 forks source link

White window on raspberry pi (raspbian) #10

Open gsedej opened 5 years ago

gsedej commented 5 years ago

Hello.

Issue: When I do the npm install and npm start on latest raspbian (nov 2018), I only get white window. The youtube app on android does detect "mMusicCast" TV.

Background: I tested mMusicCast on my ubuntu 18.04 and it does work (after apt get install libcfong-2-4). I can play videos from my android via youtube app.

Today I installed latest raspbian on raspberry pi 2 B. After installing npm (sudo apt install npm) I had to update npm via npm (sudo npm install -g npm) I was able to install mMusicCast (npm install mmusiccast).

After staring, the mMusicCast window appears but it only displays white content. The android youtube app does detect it, but it never connects.

pi@raspberrypi:~/git/mMusicCast $ npm start

> mMusicCast@1.1.0 start /home/pi/git/mMusicCast
> electron .

morgan deprecated undefined format: specify a format server.js:36:9
morgan deprecated default format: use combined format server.js:36:9
body-parser deprecated bodyParser: use individual json/urlencoded middlewares server.js:37:9
body-parser deprecated undefined extended: provide extended option node_modules/body-parser/index.js:105:29
164.8.19.75
Registered App: ChromeCast
Registered App: YouTube
Express server listening on port 8008
::ffff:164.8.19.65 - - [Fri, 08 Mar 2019 11:46:52 GMT] "GET /ssdp/device-desc.xml HTTP/1.1" 200 1079 "-" "com.google.android.youtube/13.48.51(Linux; U; Android 8.1.0; sl_SI; Nokia 6.1 Build/OPR1.170623.026) gzip"
::ffff:164.8.19.65 - - [Fri, 08 Mar 2019 11:46:52 GMT] "GET /apps/YouTube HTTP/1.1" 200 531 "-" "com.google.android.youtube/13.48.51(Linux; U; Android 8.1.0; sl_SI; Nokia 6.1 Build/OPR1.170623.026) gzip"
::ffff:164.8.19.65 - - [Fri, 08 Mar 2019 11:47:01 GMT] "GET /apps/YouTube HTTP/1.1" 200 531 "-" "com.google.android.youtube/13.48.51(Linux; U; Android 8.1.0; sl_SI; Nokia 6.1 Build/OPR1.170623.026) gzip"
express deprecated res.send(status, body): Use res.status(status).send(body) instead apps/app.js:159:7
::ffff:164.8.19.65 - - [Fri, 08 Mar 2019 11:47:01 GMT] "POST /apps/YouTube HTTP/1.1" 201 0 "-" "com.google.android.youtube/13.48.51(Linux; U; Android 8.1.0; sl_SI; Nokia 6.1 Build/OPR1.170623.026) gzip"

What I am missing?

Since project states raspberry is supported, can someone write gude?

vbaicu commented 5 years ago

The problem you have seems to be related either to electron or the graphics hardware acceleration.