-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Oven Media Player crashes and Oven Media Engine displays errors when streaming to WebRTC #312
Comments
This is probably caused by IPv6 (it doesn't seem to be related to GStreamer). OME doesn't support IPv6 yet. Please try again with IPv4. |
Ok, so I assume that STUN returns then an IPv6 address as the public address instead of IPv4 correct? |
Ok, now I set ws://192.168.1.11:3333/app/stream in the OvenMediaPlayer and I get the following logs. To provide more info my network setup is that everything sits behind a home router, where my laptop has the IP:192.168.1.11. On this laptop (Windows 10) I deploy the OvenMediaEngine docker using Docker for Windows & WSL and try to access the signalling endpoint as mentioned in the beginning via my web browser running on the same laptop. I have not modified the Server.xml at all. [2021-03-19 12:45:15.205] I [SckPoolRtcSigna:11] Signalling | rtc_signalling_server.cpp:184 | New client is connected: <ClientSocket: 0x7fd370014330, #74, state: Connected, TCP, 172.17.0.1:36516> |
@isarantidis
If this is the cause, the simplest solution is to write the correct IP that can communicate with the player instead of * in *:10000-10005/udp in Server.xml. |
@isarantidis |
Thanks I will try it today. As per your previous comment, I wrote a specific IP in Server.xml and there were no more errors in the server logs. |
Ok, so I can verify that using the latest docker dev image I did not need to specify a specific address in IceCandidate. Still I could not make it play WebRTC in the browser. I am thinking of trying not to use docker in case it somehow messes my network setup and maybe build Oven Media Engine from source. |
@isarantidis Connecting as a 172.17.0.1 candidate is wrong. You must connect to the HOST IP. If your docker is not getting external IP from stun.l.google.com:19302, you still have to set your host IP in IceCandidate. |
The docker command I used was the one from https://airensoft.gitbook.io/ovenmediaengine/getting-started. In any case I was able to successfully stream using WebRTC by building the source code in Ubuntu instead of using docker :) I will still try to figure out what is wrong with my docker setup. |
Describe the bug
Oven Media Player crashes and Oven Media Engine displays errors when streaming to WebRTC
To Reproduce
Steps to reproduce the behavior:
.\gst-launch-1.0 ksvideosrc ! videoconvert ! clockoverlay ! x264enc !queue ! flvmux ! rtmpsink location='rtmp://localhost:1935/app/stream live=true'
Logs
[2021-03-19 02:50:26.890] E [SckPoolICE:18] Ice | stun_address_attribute_format.cpp:84 | IPv6 is not supported
[2021-03-19 02:50:26.890] W [SckPoolICE:18] Ice | stun_attribute.cpp:63 | Data is too short: type: 0x2112, data length: 44 (expected: 42052)
[2021-03-19 02:50:26.890] W [SckPoolICE:18] Ice | stun_message.cpp:172 | Could not parse attribute
[2021-03-19 02:50:26.890] E [SckPoolICE:18] Ice | ice_port.cpp:569 | Could not parse STUN packet from <DatagramSocket: 0x55fe12c9bed0, #18, state: Bound, UDP, N/A>
[2021-03-19 02:50:29.395] E [SckPoolICE:18] Ice | stun_address_attribute_format.cpp:84 | IPv6 is not supported
[2021-03-19 02:50:29.395] W [SckPoolICE:18] Ice | stun_attribute.cpp:63 | Data is too short: type: 0x2112, data length: 44 (expected: 42052)
[2021-03-19 02:50:29.395] W [SckPoolICE:18] Ice | stun_message.cpp:172 | Could not parse attribute
[2021-03-19 02:50:29.395] E [SckPoolICE:18] Ice | ice_port.cpp:569 | Could not parse STUN packet from <DatagramSocket: 0x55fe12c9bed0, #18, state: Bound, UDP, N/A>
[2021-03-19 02:50:32.128] I [SckPoolRtcSigna:15] Socket.Server | server_socket.cpp:129 | [#13] [0x55fe12c89c70] Client(<ClientSocket: 0x7fc6a0003f00, #73, state: Closed, TCP, 172.17.0.1:45988>) is disconnected
[2021-03-19 02:50:32.128] I [SckPoolRtcSigna:15] WebRTC Publisher | webrtc_publisher.cpp:548 | Stop commnad received : #default#app/stream/101
[2021-03-19 02:50:32.128] I [SckPoolRtcSigna:15] Monitor | stream_metrics.cpp:144 | A session has been stopped playing #default#app/stream on the WebRTC publisher. Concurrent Viewers[WebRTC(0)/Stream total(0)/App total(0)]
[2021-03-19 02:50:32.129] I [SckPoolRtcSigna:15] Signalling | rtc_signalling_server.cpp:322 | Client is disconnected: <WebSocketClient: 0x7fc6c83c48d0, <ClientSocket: 0x7fc6a0003f00, #73, state: Closed, TCP, 172.17.0.1:45988>> (#default#app / stream, ufrag: local: h6ntvj, remote: F0aj)
Server:
Player:
The text was updated successfully, but these errors were encountered: