bakoushin / medooze-streamer-demo

Recording audio/video streams from WebRTC using Medooze Media Server and GStreamer or FFmpeg
25 stars 3 forks source link

Dont work on mobile #5

Closed remymatheus closed 3 years ago

remymatheus commented 3 years ago

Hello, the example works perfect on pc but does not work on mobile, I exposed the service on https. Any suggestion to make it work on mobile? Thanks for your help.

bakoushin commented 3 years ago

Would you mind elaborating more on the issue?

remymatheus commented 3 years ago

Thanks for your reply, the device I am using is android with chrome browser, the error sent in pc.createOffer(), is the following:

OperationError: Failed to execute "setRemoteDescription" on "RTCPeerConnection" failed to parse SessionDescription. m=video 9 UDP/TLS/RTP/SAVPF Invalid value: .

I appreciate your help.

remymatheus commented 3 years ago

Currently I have the service working, if you want I can send you the url and you can try it.

bakoushin commented 3 years ago

The error message says that we have some problem with SDP. Could you please share the SDP sent by the server? It's the result of a /connect query, which could be found on the DevTools Network tab.

remymatheus commented 3 years ago

Hello, in mobile I no longer get the error when I set RemoteDescription, now it does not execute the eventListener pc.addEventListener('track') and does not show the video.

This happens only on mobile devices.

Thank you.

bakoushin commented 3 years ago

My first guess is that something goes wrong with the RTC connection. Try checking chrome://webrtc-internals/, check the ICE candidates, is there one that succeeded?

bakoushin commented 3 years ago

Closing due to inactivity. Feel free to reopen if you have further questions.