-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In videoroom v2 example, with 3 users, only 2 videos displayed per device. #32
Comments
In my experience this seems like ice connection failed issue it can happen due to variety of reasons |
@shivanshtalwar0 I tried using Google stun servers, one as well as multiple, but that resulted in only localrenderer showing up. PS: after uncommenting voip.eutelia in Janus config, I am getting the following output : device 1 only shows localrenderer, device 2 and 3 show only device 1 feed in remoterenderer. |
Are you using docker for janus? |
Yes, the atyenoria repo |
Why don't you try my docker setup
And see if that works for you coz i deployed it and tested it with v2 api
it was working fine except multistream support
Look for janusdocker in my profile
…On Fri, 23 Apr, 2021, 6:06 pm alsiPanda, ***@***.***> wrote:
Yes, the atyenoria repo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV6A2MEXB2QZIWJ4QX3TKFSTRANCNFSM43N2XAIQ>
.
|
@shivanshtalwar0 installed the janus from your profile. Do I need to do anything else ? like configuring my nginx for janus. My previous janus setup was accessed on |
Only if you want to change current janus configuration just use docker
compose up -d
To run it in detached mode
It should work once service is up just reverse proxy to http port said ws
port in your server nginx conf
…On Fri, 23 Apr, 2021, 11:46 pm alsiPanda, ***@***.***> wrote:
@shivanshtalwar0 <https://github.com/shivanshtalwar0> installed the janus
from your profile. Do I need to anything else ? like configuring my nginx
for janus. My previous janus setup was accessed on http://
<server_ip>:8088/janus for rest, but currently I am unable to connect to
that port.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV6G6TWDHDWBQWQ5FIDTKG2QPANCNFSM43N2XAIQ>
.
|
PS: my test server doesnt have any domain name, I use IP and port to directly access it. I hope that isnt an issue |
Actually if you are running docker container without using docker compose
you should use
docker run -itd -p 8088:8088 -p 8188:8188 --name myjanus <docker image
built and tagged by you>
Once built docker build
Docker compose should also work fine make should you are running latest
docker compose version
Regarding port mapping in that case
You can get all port mapping from command
docker ps -a
…On Sat, 24 Apr, 2021, 8:02 am alsiPanda, ***@***.***> wrote:
docker-compose up -d didnt work out, at first it gave some version error
, so i removed the version from docker-compose.yaml, then it showed error
related to janus-multistreaming. I was able to install using docker build
and docker run. But cant seem to figure to how to reverse proxy to the
new janus, as in which port to proxy_pass, etc. If possible, can you share
the code for reverse proxy from your nginx.conf ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV57UUYRFUFNOH6OJGTTKIUTFANCNFSM43N2XAIQ>
.
|
I ran this : |
Http should work but i would advise you to install nginx and setup reverse
proxy to docker ip and respective port for websocket or rest you can look
at my nginx conf here
If you using multistream
https://github.com/shivanshtalwar0/JanusDocker/blob/main/JanusMultiStreaming/nginx/sites-available/unified-janus.onemandev.tech
Here in the conf i have reverse proxied to docker ip and port using nginx
and enabled ssl encryption using certbot
…On Sat, 24 Apr, 2021, 10:42 am alsiPanda, ***@***.***> wrote:
I ran this : docker run -itd -p 8088:8088 -p 8188:8188 --name myjanus
<docker image built and tagged by you> , setup done. In the app, rest =
RestJanusTransport(url: 'http://<server_ip>:8088/rest'); - when I use
this, or use https instead, I get the following error: Unhandled
Exception: Connection to given url can't be established reason:-Janus
Server not live or incorrect url/path specified
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV4ALXY7VFEDNCS5K3DTKJHKRANCNFSM43N2XAIQ>
.
|
I have added the following to my nginx file - `map $http_upgrade $connection_upgrade { upstream websocket { server { After that when I use the following url for RestJanusTransport - |
Let's connect on skype call
…On Sat, 24 Apr, 2021, 1:59 pm alsiPanda, ***@***.***> wrote:
I have added the following to my nginx file -
`map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream websocket {
server 127.0.0.1:8081;
}
upstream rest {
server 127.0.0.1:8088;
}
server {
listen 80;
listen [::]:80;
server_name _;
location /websocket {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /rest/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://rest/janus/;
}
}`
After that when I use the following url for RestJanusTransport - http://
<server_ip>/rest, I am still getting the Incorrect url/path error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV6R5VXRGHWDHC7QLBTTKJ6NFANCNFSM43N2XAIQ>
.
|
@shivanshtalwar0 , sorry but coming to Skype won't be possible for me, if need be I can send the code for my entire Nginx conf, as well as the slightly edited code for videoroom v2 example, would that be helpful ? Any other screenshots as well if you require, I can send it. |
First of all make sure you are able to access janus server locally
By running
curl 127.0.0.1:8088/janus/info
If it returns response that means ut is working and then setup reverse
proxy accordingly
…On Sat, 24 Apr, 2021, 2:17 pm alsiPanda, ***@***.***> wrote:
@shivanshtalwar0 <https://github.com/shivanshtalwar0> , sorry but coming
to Skype won't be possible for me, if need be I can send the code for my
entire Nginx conf, as well as the slightly edited code for videoroom v2
example, would that be helpful ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV6RBYAFYTYGH6W5KI3TKKASXANCNFSM43N2XAIQ>
.
|
|
So considering nginx conf that you mentioned earlier janus server url
should be
http://myserver.com/websocket
As for rest it should be
http://myserver.com/rest
And you can test whether reverse proxy worked by trying
http://myserver.com/rest/info
…On Sat, 24 Apr, 2021, 6:10 pm alsiPanda, ***@***.***> wrote:
curl 127.0.0.1:8088/janus/info - this worked on the server side.
http://<server_ip>:8088/janus/info this worked in browser. So I am
assuming reverse-proxy worked ?
In app, I used http://<server_ip>:8088/janus in the RestJanusTransport,
after which I am able to see localrenderer but not the remoterenderers.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV7QTEUYLXJQSXDAMODTKK34DANCNFSM43N2XAIQ>
.
|
Make sure you are using https for doing it it can be the other reason for
your problem
On Sat, 24 Apr, 2021, 6:16 pm Shivansh Talwar, ***@***.***>
wrote:
… So considering nginx conf that you mentioned earlier janus server url
should be
http://myserver.com/websocket
As for rest it should be
http://myserver.com/rest
And you can test whether reverse proxy worked by trying
http://myserver.com/rest/info
On Sat, 24 Apr, 2021, 6:10 pm alsiPanda, ***@***.***> wrote:
> curl 127.0.0.1:8088/janus/info - this worked on the server side.
> http://<server_ip>:8088/janus/info this worked in browser. So I am
> assuming reverse-proxy worked ?
> In app, I used http://<server_ip>:8088/janus in the RestJanusTransport,
> after which I am able to see localrenderer but not the remoterenderers.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#32 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AGLGDV7QTEUYLXJQSXDAMODTKK34DANCNFSM43N2XAIQ>
> .
>
|
http://<server_ip>/rest/info is working in the browser. But http://<server_ip>/rest gives incorrect url error. I tried adding port numbers - 80, 8088 to above ip, but it didn't work. I also tried ws://<server_ip>/websocket in WebsocketJanusTransport but I got - connection was not upgraded to websocket. PS: going to try out https next. |
@shivanshtalwar0 , any other possible reason that remoterenderer not showing ? https will require getting a domain name and all. Summarizing, So far setup is working and reverse proxy is also working, as tested using /info in the browser and server. Using http://<server_ip>:8088/janus directly in the RestJanusTransport works. But remoterenderers not showing up. Once in a while, one of the devices shows a remoterenderer but it is completely black box instead of the video stream. Could it have anything to do with ip address of all the device being same or the server bandwidth being low. |
Well honestly I haven't tested it on http and i am preety sure it has got something to do with janus server or http connection |
Got a domain name and the https running. But the videoroom is still showing only localrenderer. I will try a few other things later, maybe try running the new V2 example code as is and continue from there. |
Replace it with official Janus demo url from config map
My servers are down for a while will make them up later
…On Mon, 26 Apr, 2021, 10:12 pm alsiPanda, ***@***.***> wrote:
Got a domain name and the https running. But the videoroom is still
showing only localrenderer. I will try a few other things later, maybe try
running the new V2 example code as is and continue from there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV2TEQFUFWBKBTUZOY3TKWJWXANCNFSM43N2XAIQ>
.
|
So I tried with the examples folder directly and only replaced displayed name and the urls. In JanusClient I used rest instead of ws. In Videoroom I can see only localrenderer. |
Are you sure you not using unified plan?
…On Tue, 27 Apr, 2021, 2:36 pm alsiPanda, ***@***.***> wrote:
So I tried with the examples folder directly and only replaced displayed
name and the urls. In JanusClient I used rest instead of ws. In Videoroom I
can see only localrenderer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV2UGBD6TONLFT3XETDTKZ5BTANCNFSM43N2XAIQ>
.
|
I downloaded the janus_client V2 version instead of master from GitHub. The page I ran is videoroom and videoroomV2. |
And are you using janus official demo url?
…On Tue, 27 Apr, 2021, 3:02 pm alsiPanda, ***@***.***> wrote:
I downloaded the janus_client V2 version instead of master from GitHub.
The page I ran is videoroom and videoroomV2.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV76EN7WZE7E2WUYSN3TK2ADTANCNFSM43N2XAIQ>
.
|
In VideoRoom_V2.dart (Not useing ws because getting an error related websocket) In conf.dart
|
As i can see you are using your own server url first try with janus
official demo url
…On Tue, 27 Apr, 2021, 4:00 pm alsiPanda, ***@***.***> wrote:
In VideoRoom_V2.dart (Not useing ws because getting an error related
websocket)
rest = RestJanusTransport(url: 'https://mywebsite.xyz/rest/'); ws =
WebSocketJanusTransport( url: 'wss://mywebsite.xyz/websocket'); j =
JanusClient(transport: rest, iceServers: [ RTCIceServer( url: "stun:
stun.voip.eutelia.it:3478", username: "", credential: "") ]);
In conf.dart
var servers = [ 'wss://kosmosnetworkapps.xyz/websocket', 'wss://
janus.conf.meetecho.com/ws', 'https://kosmosnetworkapps.xyz/rest/',
'wss://janus.conf.meetecho.com/ws', 'wss://kosmosnetworkapps.xyz/websocket',
'https://kosmosnetworkapps.xyz/rest/' ]; Map<String, String> servermap =
{ 'janus_ws':'wss://janus.conf.meetecho.com/ws', 'onemandev_master_ws':
'wss://kosmosnetworkapps.xyz/websocket', 'onemandev_master_rest': '
https://kosmosnetworkapps.xyz/rest/', 'onemandev_unified_rest': '
https://kosmosnetworkapps.xyz/rest/', 'onemandec_unified_ws': 'wss://
kosmosnetworkapps.xyz/websocket' };
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV4PB53P3IKRJFFEVCTTK2G5XANCNFSM43N2XAIQ>
.
|
Tried the meetecho url everywhere, as you suggested, the example code is working perfectly. I assume that means, the problem is with the Janus server setup. Or maybe, the Nginx configuration for the Janus docker. |
Yes, it must be something to do with janus configuration or janus server
itself
…On Fri, 30 Apr, 2021, 8:59 am alsiPanda, ***@***.***> wrote:
Tried the meetecho url everywhere, as you suggested, the example code is
working perfectly. I assume that means, the problem is with the Janus
server setup. Or maybe, the Nginx configuration for the Janus docker.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV6CYWDEQVXRE3A5F5DTLIPZ3ANCNFSM43N2XAIQ>
.
|
@shivanshtalwar0 , I did a thorough recheck and finally managed to get things working using Janus installed on my server. This is the result for videoroom v2. |
So that's great! You can close this issue then if everything worked for you |
I think, I may have written it the wrong way. But basically I am back to where this issue started. The videoroom is not showing all the users videos. One of the device is showing all 3, and the other 2 are only showing 2. So I am finally getting the same results using the the same Janus docker installation as yours , as I was getting earlier with the atyenoria repo. |
Well in that case i will have to check it probably issue related to
videoroom example
…On Fri, 30 Apr, 2021, 10:21 pm alsiPanda, ***@***.***> wrote:
I think, I may have written it the wrong way. But basically I am back to
where this issue started. The videoroom is not showing all the users
videos. One of the device is showing all 3, and the other 2 are only
showing 2. So I am finally getting the same results using the the same
Janus docker installation as yours , as I was getting earlier with the
atyenoria repo.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGLGDV52UPNWFBTRXQ4NICLTLLN2BANCNFSM43N2XAIQ>
.
|
@shivanshtalwar0 Thanks for looking into it. The problem only appears in 2+ devices. Will wait for your reply before trying anything else. |
@shivanshtalwar0 , Anyway I can help, maybe test in a specific way, or try some changes out, I would be happy to help. |
Definitely i will let you know once i have done some changes you can test 😊 |
@alsiPanda I think this issue is there because lorenzo merged multistream in master branch for janusgateway and videoroom example needs to accommodate those changes you can still make existing example work by setting up janusgateway version prior to multistream support |
@shivanshtalwar0 I was trying out the videoroom v2 example, and kept facing the following problem:
The only change to the example code I have made is the Janus url, which points to my gcp server, which hosts janus, and the username while registering so all three devices have different usernames.
My understanding of Janus and webrtc isn't really that deep, so do I need change or add something else in the example code ?
The text was updated successfully, but these errors were encountered: