Janode VideoRoom example

I have canyan janus gateway container running and now i dont know what do do to start the videoRoom example. I did npm install and npm run start but i get errors like that :

You need to issue npm install on both janode (the core library) and the videoroom example.
Then you need to create a configuration for the videoroom example with npm run build config.
From there just edit the configuration to let janode connect to the janus instance and then open the example embedded web-app from a browser.

whenever i try to npm install i have the following errors : PS C:\Users\zakar\Desktop\janode> npm install
npm ERR! code 1
npm ERR! path C:\Users\zakar\Desktop\janode\node_modules\unix-dgram
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@20.10.0 | win32 | x64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3
npm ERR! gyp ERR! find Python - executable path is “”
npm ERR! gyp ERR! find Python - “” could not be run
npm ERR! gyp ERR! find Python checking if “python3” can be used
npm ERR! gyp ERR! find Python - executable path is “”
npm ERR! gyp ERR! find Python - “” could not be run
npm ERR! gyp ERR! find Python checking if “python” can be used
npm ERR! gyp ERR! find Python - executable path is “”
npm ERR! gyp ERR! find Python - “” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python311\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python311\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python311\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python311-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python311-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python311-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python310\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python310\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python310\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python310-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python310-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python310-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python39\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python39\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python39-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python39-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python39-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python38\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python38\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python38\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\zakar\AppData\Local\Programs\Python\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Users\zakar\AppData\Local\Programs\Python\Python38-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files\Python38-32\python.exe” could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is “”
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - “C:\Program Files (x86)\Python38-32\python.exe” could not be run
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python=“C:\Path\To\python.exe”
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python “C:\Path\To\python.exe”
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python GitHub - nodejs/node-gyp: Node.js native addon build tool
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack at PythonFinder.fail (C:\Users\zakar\AppData\Roaming\nvm\v20.10.0\node_modules\npm\node_modules\node-gyp\lib\find-python.js:306:11)
npm ERR! gyp ERR! stack at PythonFinder.findPython (C:\Users\zakar\AppData\Roaming\nvm\v20.10.0\node_modules\npm\node_modules\node-gyp\lib\find-python.js:164:17)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! gyp ERR! stack at async configure (C:\Users\zakar\AppData\Roaming\nvm\v20.10.0\node_modules\npm\node_modules\node-gyp\lib\configure.js:23:18)
npm ERR! gyp ERR! stack at async run (C:\Users\zakar\AppData\Roaming\nvm\v20.10.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
npm ERR! gyp ERR! System Windows_NT 10.0.22631
npm ERR! gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\zakar\AppData\Roaming\nvm\v20.10.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd C:\Users\zakar\Desktop\janode\node_modules\unix-dgram
npm ERR! gyp ERR! node -v v20.10.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: C:\Users\zakar\AppData\Local\npm-cache_logs\2024-02-04T17_47_08_662Z-debug-0.log

I do have python installed !


what do i need to change here exactly and how do i get the right credentials ?

in the janode section
url is the endpoint on Janus that is hosting the WebSocket API (configured in Janus), if Janus is launched locally that is the default value.
apisecret is the secret for that API channel (configured in Janus).

web section is related to the sample web-app hosted by the videoroom example
port is the port the web server is listening to
bind is the host the web server is listening to (0.0.0.0 will listen on all the interfaces)
key and cert are only needed if you want to test a secure service (optional for quick local testing)

So if everything is correctly configured you just need to start the example and head to the URL pointed in the example logs (e.g)

2024-02-05T09:18:34.464Z - INFO    : [index.js] server listening on https://0.0.0.0:4443/janode

What do you think here ? :

i dont need to have a container running right ?

It’s trying to open a websocket with 172.17.0.1:8188 but it’s failing.
Maybe the janus process / container is not started, or the port is not available to the machine launching janode.

ok im kinda new to docker here’s whats running :

you think its right ?

Thank you very much for answering :slight_smile:

We do not provide Docker images, I can’t help with that sorry.
You should check if there are configurations available when starting the container.

so having a running container is mandatory to be able run videoroom ?

Having a running janus instance is mandatory of course, either on your machine on another host.
Janode is just a library wrapping the signalling layer.

so i guess i need to find a janus container that works and put the ip of thatcontainer in the config.js it must be the only way for me ?

Every container should work, you just need to configure it properly.
Since you are using Windows, another chance is compiling and running Janus in WSL by yourself.
I know someone else did that.

is this normal that whenever i wanna docker compose this GitHub - canyanio/janus-gateway-docker: Docker image for the Janus WebRTC Server

i have this error :

? thanks in advance

As I said, we do not provide Docker images so I have no idea what is missing to the configuration there