Skip to content
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

camera not show #1679

Open
Jacky-LinPeng opened this issue Feb 2, 2021 · 10 comments
Open

camera not show #1679

Jacky-LinPeng opened this issue Feb 2, 2021 · 10 comments

Comments

@Jacky-LinPeng
Copy link

I installed Licode using Docker and it was installed and started correctly
Test access 127.0.0.1:3001 can see the camera normally
But when I use 192.168.0.106:3001, I can access the service normally, but I can't see the camera.
Is this a bug? I need your help

start cmd:

PUBLIC_IP=192.168.0.106 MIN_PORT=30000; MAX_PORT=30050; sudo docker run --name licode -p 3000:3000 -p $MIN_PORT-$MAX_PORT:$MIN_PORT-$MAX_PORT/udp -p 3001:3001 -p 8090:8090 -e "MIN_PORT=$MIN_PORT" -e "MAX_PORT=$MAX_PORT" -e "PUBLIC_IP=$PUBLIC_IP" -e "NETWORK_INTERFACE=eth0" lynckia/licode

image

image

@Jacky-LinPeng
Copy link
Author

iOS websocket test log:

LAN IP:192.168.0.104
PORT: 3000

Domain=SRWebSocketErrorDomain Code=2133 "Invalid Sec-WebSocket-Accept response" UserInfo={NSLocalizedDescription=Invalid Sec-WebSocket-Accept response}

is server exception ???

@Jacky-LinPeng
Copy link
Author

licode资料好少 无从下手 从入门果断放弃.. 还是关注一下其他的开源框架吧.

@davidguv
Copy link

davidguv commented Feb 4, 2021

Hi Jacky
The access to the camera is only valid in https or localhost(127.0.0.1)

The other problem is that you use ' -p 8090:8090' to the websockets, and the licode use 8080 port

@Jacky-LinPeng
Copy link
Author

Hi Jacky
The access to the camera is only valid in https or localhost(127.0.0.1)

The other problem is that you use ' -p 8090:8090' to the websockets, and the licode use 8080 port

thanks so much,

but the websocket test get logs:
'''
[[WebRTCHelper shareInstance] connectServer:@"192.168.0.104" port:@"3000" room:@"1000"];
'''

SRWebSocketErrorDomain Code=2132 "received bad response code from server 401" UserInfo={NSLocalizedDescription=received bad response code from server 401, HTTPResponseStatusCode=401}

@Jacky-LinPeng
Copy link
Author

[[WebRTCHelper shareInstance] connectServer:@"192.168.0.104" port:@"8080" room:@""];

SRWebSocket:
code = 1001,reason = Stream end encountered

@davidguv
Copy link

davidguv commented Feb 6, 2021

Hi Jacky
In your docker command you do not use port 8080. Perhaps another service on your host opens and responds on this port.

@Jacky-LinPeng
Copy link
Author

Hi Jacky
In your docker command you do not use port 8080. Perhaps another service on your host opens and responds on this port.

tanks davidguv

but get log:code:1001 reason :Stream end encountered wasclean:0

image

@Jacky-LinPeng
Copy link
Author

log:

image

[Log] Flags parsed, configuration is – {noStart: false, forceStart: false, screen: false, …} (script.js, line 47) {noStart: false, forceStart: false, screen: false, room: "basicExampleRoom", singlePC: true, …}Object [Log] Selected Room – "basicExampleRoom" – "of type" – "erizo" (script.js, line 96) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (favicon.ico, line 0) [Log] eyJ0b2tlbklkIjoiNjAxZmVmZDM1MTlmYTEwMjllYjU3ZDVhIiwiaG9zdCI6IjE5Mi4xNjguMC4xMDQ6ODA4MCIsInNlY3VyZSI6ZmFsc2UsInNpZ25hdHVyZSI6IllUTTFZemRqWXpSbFlUWTJaR1V4WVdZMVlqbGtPVEF6WVdReU16aGtOalEyT0RnMlkyRmxZUT09In0= (script.js, line 134) [Log] ERROR: – "(Stream)" – "message: Failed to get access to local media, streamId: local, label: undefined, error: TypeError: undefined is not an object (evaluatin…" (erizo.js, line 30)

@davidguv
Copy link

davidguv commented Feb 7, 2021

Hi Jacky

The important line:
ERROR: – "(Stream)" – "message: Failed to get access to local media

No local media without https in different url than localhost

Try with de 3004 port (https), export in docker command and validate de certificate in the browser https://192.168.106:3004

@Jacky-LinPeng
Copy link
Author

Hi Jacky

The important line:
ERROR: – "(Stream)" – "message: Failed to get access to local media

No local media without http_s_ in different url than localhost

Try with de 3004 port (https), export in docker command and validate de certificate in the browser https://192.168.106:3004

browser can't open https://192.168.106:3004 & http://192.168.106:3004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants