Hello,

I am using WebRTC Native C++ API to stream a video to the web browser. If I use 
VP8 codec, then the video works perfectly but if I try to use H264 encoding by 
manually editing the SDP or by using media.navigator.video.preferred_codec=126, 
the video won't render in the video tag. Firefox doesn't show any error or 
warning. In fact, if I look into the inspector, the source of the video is 
perfectly set. For the past 3 days, I thought the bug must be inside my code on 
top of Native C++ library but yesterday I came across the M-50 beta build of 
chrome with H.264 support and Chrome is rendering the video perfectly (if I 
edit the SDP for Chrome to prefer H264).

Here is the request SDP from Firefox:

{
"type":"offer",
"sdp":"v=0\r\no=mozilla...THIS_IS_SDPARTA-38.5.1 7229046934919100804 0 IN IP4 
0.0.0.0\r\ns=-\r\nt=0 0\r\na=fingerprint:sha-256 
67:63:FE:DE:21:C4:FB:FF:87:91:71:DB:86:0A:DE:F2:68:04:50:6B:54:C7:D7:53:FB:A4:91:C3:3C:F8:99:13\r\na=group:BUNDLE
 sdparta_0\r\na=ice-options:trickle\r\na=msid-semantic:WMS *\r\nm=video 9 
RTP/SAVPF 126 120 97\r\nc=IN IP4 0.0.0.0\r\na=recvonly\r\na=fmtp:126 
profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1\r\na=fmtp:120
 max-fs=12288;max-fr=60\r\na=fmtp:97 
profile-level-id=42e01f;level-asymmetry-allowed=1\r\na=ice-pwd:0fd21fea2274d4193d957ef0436b609b\r\na=ice-ufrag:fb0fc656\r\na=mid:sdparta_0\r\na=rtcp-fb:126
 nack\r\na=rtcp-fb:126 nack pli\r\na=rtcp-fb:126 ccm fir\r\na=rtcp-fb:120 
nack\r\na=rtcp-fb:120 nack pli\r\na=rtcp-fb:120 ccm fir\r\na=rtcp-fb:97 
nack\r\na=rtcp-fb:97 nack pli\r\na=rtcp-fb:97 ccm 
fir\r\na=rtcp-mux\r\na=rtpmap:126 H264/90000\r\na=rtpmap:120 
VP8/90000\r\na=rtpmap:97 H264/90000\r\na=setup:actpass\r\n"
}

And here is the response from the Native Client:

{
   "sdp" : "v=0\r\no=- 4117922230842614863 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 
0\r\na=group:BUNDLE sdparta_0\r\na=msid-semantic: WMS stream_label\r\nm=video 9 
RTP/SAVPF 126 120 97\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 
0.0.0.0\r\na=ice-ufrag:wQKnZXwm1fbj00qL\r\na=ice-pwd:Ucz8PYk0pVcoEwOKQEQ+Ypcg\r\na=fingerprint:sha-256
 
30:CA:BD:68:36:50:32:AF:50:B7:D9:93:82:C7:6D:6D:65:FD:1C:B3:09:4B:87:BB:9A:2E:61:64:83:85:64:8E\r\na=setup:active\r\na=mid:sdparta_0\r\na=sendonly\r\na=rtcp-mux\r\na=rtpmap:126
 H264/90000\r\na=rtcp-fb:126 ccm fir\r\na=rtcp-fb:126 nack\r\na=rtcp-fb:126 
nack pli\r\na=rtpmap:120 VP8/90000\r\na=rtcp-fb:120 ccm fir\r\na=rtcp-fb:120 
nack\r\na=rtcp-fb:120 nack pli\r\na=rtpmap:97 H264/90000\r\na=rtcp-fb:97 ccm 
fir\r\na=rtcp-fb:97 nack\r\na=rtcp-fb:97 nack pli\r\na=ssrc:1016949482 
cname:mu9kuR3Ku69RRate\r\na=ssrc:1016949482 msid:stream_label 
video_label\r\na=ssrc:1016949482 mslabel:stream_label\r\na=ssrc:1016949482 
label:video_label\r\n",
   "type" : "answer"
}

The link of the remote Video Stream once it is added is:

mediastream:http://localhost:8181/2a61ff9b-1038-45b9-b57f-8044c6ae53dd

Any kind of help will be greatly appreciated.

Regards,
Zain Ul Abideen
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to