Comments (12)
Gotcha, now it is working, thanks! <3
from react-carplay.
was an issue with the usb library, version now locked to 7 which works with mac
from react-carplay.
npm run start-electron
I can hear the music but nothing is rendered.
from react-carplay.
was this a fresh clone and npm install? Also is the dongle a genuine one? Your logs have a couple of strange lines in there, see below for a log until video from my working set up
dpi: 240,
nightMode: 0,
hand: 0,
boxName: 'nodePlay',
width: 800,
height: 480,
fps: 60
}
directory found
device connected and ready
starting projection
parsing type: 8 for length: 4 <Buffer aa 55 aa 55 04 00 00 00 08 00 00 00 f7 ff ff ff>
parsing 8 <Buffer e8 03 00 00>
Carplay message: Support Wifi
unkown type: 13 with data:: <Buffer aa 55 aa 55 0d 00 00 00 0d 00 00 00 f2 ff ff ff>
unkown type: 14 with data:: <Buffer aa 55 aa 55 0d 00 00 00 0e 00 00 00 f1 ff ff ff>
unkown type: 18 with data:: <Buffer aa 55 aa 55 76 00 00 00 12 00 00 00 ed ff ff ff>
parsing type: 8 for length: 4 <Buffer aa 55 aa 55 04 00 00 00 08 00 00 00 f7 ff ff ff>
parsing 8 <Buffer e9 03 00 00>
Carplay message: undefined
test message i
parsing type: 8 for length: 4 <Buffer aa 55 aa 55 04 00 00 00 08 00 00 00 f7 ff ff ff>
parsing 8 <Buffer 07 00 00 00>
Carplay message: undefined
test message
parsing type: 204 for length: 32 <Buffer aa 55 aa 55 20 00 00 00 cc 00 00 00 33 ff ff ff>
parsing 204 <Buffer 32 30 32 31 2e 30 32 2e 32 33 2e 31 37 35 38 43 41 59 00 00 00 00 00 00 00 00 00 00 00 00 00 00>
version number: 2021.02.23.1758CAY
unkown type: 25 with data:: <Buffer aa 55 aa 55 77 00 00 00 19 00 00 00 e6 ff ff ff>
unkown type: 1 with data:: <Buffer aa 55 aa 55 1c 00 00 00 01 00 00 00 fe ff ff ff>
Socket connected. sending data...
parsing type: 8 for length: 4 <Buffer aa 55 aa 55 04 00 00 00 08 00 00 00 f7 ff ff ff>
parsing 8 <Buffer f2 03 00 00>
Carplay message: undefined
test message r
non-audio found
unknown type: 11 false false
non-audio found
unknown type: 11 false false
non-audio found
unknown type: 11 false false
parsing type: 2 for length: 4 <Buffer aa 55 aa 55 04 00 00 00 02 00 00 00 fd ff ff ff>
parsing 2 <Buffer 03 00 00 00>
no wifi avail, phone type: 3
data received { status: true }
parsing type: 8 for length: 24 <Buffer aa 55 aa 55 18 00 00 00 08 00 00 00 f7 ff ff ff>
parsing 8 <Buffer 04 00 00 00 41 43 3a 34 39 3a 44 42 3a 32 44 3a 46 39 3a 31 30 ea df 71>
Carplay message: undefined
test message AC:49:DB:2D:F9:10j_q
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 1 false false
unkown type: 3 with data:: <Buffer aa 55 aa 55 04 00 00 00 03 00 00 00 fc ff ff ff>
non-audio found
unknown type: 10 false false
```
from react-carplay.
can you upload the terminal ouput up until you hear audio?
from react-carplay.
> [email protected] start-electron
> export ELECTRON_START_URL=http://localhost:3000 && electron . --no-sandbox
spawning carplay {
dpi: 240,
nightMode: 0,
hand: 0,
boxName: 'nodePlay',
width: 800,
height: 480,
fps: 60
}
directory found
device not connected
(node:28821) electron: Failed to load URL: http://localhost:3000/ with error: ERR_CONNECTION_REFUSED
(Use `Electron --trace-warnings ...` to show where the warning was created)
^C/Users/sobrinho/Developer/landrover/react-carplay/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT
When I start without the device, even if I plug it after the software boot, it does nothing.
from react-carplay.
> [email protected] start-electron
> export ELECTRON_START_URL=http://localhost:3000 && electron . --no-sandbox
spawning carplay { dpi: 240,
nightMode: 0, hand: 0,
boxName: 'nodePlay', width: 800,
height: 480, fps: 60
} directory found
device connected and ready unkown type: 1 with data:: <Buffer aa 55 aa 55 00 00 00 00 01 00 00 00 fe ff ff ff>
(node:28861) electron: Failed to load URL: http://localhost:3000/ with error: ERR_CONNECTION_REFUSED (Use `Electron --trace-warnings ...` to show where the warning was created)
starting projection parsing type: 8 for length: 4 <Buffer aa 55 aa 55 04 00 00 00 08 00 00 00 f7 ff ff ff>
parsing 8 <Buffer 07 00 00 00> Carplay message: undefined
test message parsing type: 204 for length: 32 <Buffer aa 55 aa 55 20 00 00 00 cc 00 00 00 33 ff ff ff>
parsing 204 <Buffer 32 30 32 31 2e 30 38 2e 33 30 2e 31 38 32 31 43 41 59 00 00 00 00 00 00 00 00 00 00 00 00 00 00> version number: 2021.08.30.1821CAY
unkown type: 25 with data:: <Buffer aa 55 aa 55 85 00 00 00 19 00 00 00 e6 ff ff ff> unkown type: 1 with data:: <Buffer aa 55 aa 55 1c 00 00 00 01 00 00 00 fe ff ff ff>
non-audio found unknown type: 11 false false
non-audio found unknown type: 11 false false
non-audio found
unknown type: 11 false false
parsing type: 2 for length: 4 <Buffer aa 55 aa 55 04 00 00 00 02 00 00 00 fd ff ff ff>
parsing 2 <Buffer 03 00 00 00>
no wifi avail, phone type: 3
data received { status: true } [36/129]
parsing type: 8 for length: 24 <Buffer aa 55 aa 55 18 00 00 00 08 00 00 00 f7 ff ff ff>
parsing 8 <Buffer 04 00 00 00 44 30 3a 44 32 3a 42 30 3a 31 34 3a 34 38 3a 33 43 00 00 00>
Carplay message: undefined
test message D0:D2:B0:14:48:3C
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 1 false false
unkown type: 3 with data:: <Buffer aa 55 aa 55 04 00 00 00 03 00 00 00 fc ff ff ff>
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 10 false false
non-audio found
unknown type: 10 false false
If I start with the dongle plugged, it works but no video at all in the electron window.
from react-carplay.
Dongle is the Autokit wired one.
from react-carplay.
And it is a fresh clone therefore with a fresh node_modules.
from react-carplay.
I had to disable the kiosk mode otherwise I can't use my computer at all until I close the window, can't CMD+TAB or anything, but this might be expected.
And also, even if I'm in another window, the keybindings are attached to electron, so I can't type at all in other apps because the keys are intercepted by the electron app.
from react-carplay.
Ah ok I think I see what's happening, you need two terminals open in the npm directory, on one type
npm run start
Let that finish, then on the other type
npm run start-electron
In a dev enviroment the react server is seperate to the electron server, let me know how that goes.
The keybindings is as expected, electron uses global shortcuts, so takes hold of the keypresses, main reason is that the electron app is designed to be built upon, to display other data (see my jag videos) in this case you still want key presses to register for skip songs etc. An easy way around it is to just comment out these lines
react-carplay/electron/main.js
Lines 87 to 91 in 418dd5c
from react-carplay.
Also worth noting, in the latest jmuxer version, when the main window loses focus the "video" stops until you go back to it, this is something you will run into when not in kiosk mode, I also had a few issues on mac with it feeding the video feed at the correct framerate, its perfect on a pi, so would be interested to see how you get on, and whether it was just an issue on my mac.
from react-carplay.
Related Issues (16)
- Why do we need calinkit? HOT 1
- How to output sound from bluetooth? HOT 5
- App exiting with SIGABRT HOT 13
- Build fails when prebuilding USB HOT 8
- Compatibility with opendsh HOT 8
- change binded keys and some options in config file HOT 6
- Error: cannot find zipfile directory in one of AutoKit.apk HOT 4
- Compatibility with CPC200-TBOX HOT 5
- Weird sound on RPI 4 HOT 4
- Segmentation fault during installation HOT 6
- Duplicate touch entry HOT 2
- Not able to start video stream HOT 3
- Setting Car Icon in Carplay HOT 14
- App fails with Syntax error: word unexpected (expecting ")") HOT 3
- Is it possible to access the electron page remotely? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-carplay.