Janus-gateway (videoRoom plugin demo), react version
In the project directory, you can run:
demo steps (modify from https://github.com/linagora/docker-janus-gateway)
- docker-compose up -d
- yarn install
- yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
- to docker shell
docker exec -ti [container id] bash
- to file root
cd /opt/janus/etc/janus
vim janus.transport.websockets.jcfg
- modify file content
wss = true # Whether to enable secure WebSockets
wss_port = 8989 # WebSockets server secure port, if enabled
- like step2 & step3
vim janus.transport.http.jcfg
modify to ...
https = true # Whether to enable HTTPS (default=no)
secure_port = 8089 # Web server HTTPS port, if enabled
- restart docker service
exit
docker restart [container_id]
To learn React, check out the React documentation.