I need to RTP media stream coming from Gstreamer over Web Browser, so I am using Janus WebRTC Gateway for the same. Media stream appears fine in Chrome, but when I try to view the same stream in Firefox, it can't view any stream, moreover the console throws me an error `ICE failed, add a TURN server and see about:webrtc for more details`. On debugging Janus, thorough its Admin API, I figured out that Firefox can't get Remote SDP, whereas Chrome get it. SDP Session state in firefox stays at `gathering` forever, but as soon as it changes to `ready` in Chrome, the stream appears.
Following are the Session logs for Chrome and FireFox:
Session Logs for Chrome:
https://pastebin.com/WEkMj5DW
Session Logs for Firefox:
https://pastebin.com/wmM6YKJK
On further debugging, I found out that answer created for SDP negotiation by RTCPeerConnection.createAnswer() returns the answer with attribute `rtpmap:120 VP8/90000` whereas, my stream is `H264/90000` encoded. Is there a way I can create a valid answer for SDP negotiation for H264 encoded stream.
Please suggest.
Regards,
Rhythm