mpolinowski / RTSPtoWebRTC

IP Camera RTSP Stream to WebRTC for your Webpage
MIT License
54 stars 18 forks source link

How to change ice_servers with credential details in config.json #3

Open sraza295 opened 3 years ago

sraza295 commented 3 years ago

{ "server": { "http_port": ":8888", "ice_servers": ["stun:stun.l.google.com:19302"] }, "streams": { "INSTAR_IN-6014_HD": { "on_demand": true, "url": "rtsp://admin:instar@192.168.2.47/11" }, "INSTAR_8015_FHD": { "on_demand": true, "url": "rtsp://admin:instar@192.168.2.77/11" }, "INSTAR_9020_FHD": { "on_demand": true, "url": "rtsp://admin:instar@192.168.2.117/12" }, "INSTAR_IN-7011_HD": { "on_demand": true, "url": "rtsp://admin:instar@192.168.2.63/11" }, "H264_PCMALAW": { "on_demand": true, "url": "rtsp://admin:evro0811@89.21.77.183:33556/" } } }

Now, how do I change "ice_servers" with credentials? For example this is my turn server : { url: 'turn:numb.viagenie.ca', credential: 'muazkh', username: 'webrtc@live.com' }

how to change in config.json