First of all i am new to janus media server. In my recent project, i have use canyan docker image of janus. I didn’t expose any port to that docker container. I hosted the container on remote server. I clone the repo GitHub - meetecho/janus-gateway: Janus WebRTC Server I am trying to check videoroom.html file. I changed my server address in settings.js file. But the problem is when i click on start video room button it shows invalid url. Can anyone provide me the documentation or any idea how i can make a video room successfully on my local host for testing purpose. Please Not I didn’t use any apache or nginx on my remote server. Thanks
1 Like
How frontend code (demos) interacts with the backend is explained here.
Notice that the server
variable is defined in the settings.js
file of the demos.
Thanks for responding. Here is my docker image:
i have set my var as follow
var server = null;
if(window.location.protocol === ‘http:’)
server = “http://194.163.178.207:8089”;
else
server = “https://” + window.location.hostname + “:8089/janus”;
this is the my console
videoroomtest.js:49 Uncaught ReferenceError: server is not defined
at HTMLButtonElement. (videoroomtest.js:49:14)
at HTMLButtonElement.i (jquery.min.js:4:2284)
at HTMLButtonElement.dispatch (jquery.min.js:3:28337)
at v.handle (jquery.min.js:3:25042)