Disable audio/video for SDP offer

627 views
Skip to first unread message

Dennis Boldt

unread,
Aug 27, 2014, 12:14:33 PM8/27/14
to discuss...@googlegroups.com
Hello,

I am creating WebRTC-based data channels between Firefox and Chrome. Working on that, I created this very basic SDP analysis application: https://boldt.github.io/webrtc/sdp/

Running this in Chrome, I get a SDP with two media descriptons (m= (see below)). Is there any way to disable audio/video media descriptions, so I can just offer the appliaction, e.g. the WebRTC DataChannel?

Kind regards,
Dennis

v=0 o=- 1004734979795152447 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE audio data a=msid-semantic: WMS m=audio 1 RTP/SAVPF 111 103 104 0 8 106 105 13 126 c=IN IP4 0.0.0.0 a=rtcp:1 IN IP4 0.0.0.0 a=ice-ufrag:HLGJZmXbmalHlO3k a=ice-pwd:CLXpU6gyDuxP2OIHfGFGy0zx a=ice-options:google-ice a=fingerprint:sha-256 BA:28:34:D0:61:43:60:F4:FD:6B:49:AF:6F:50:FE:57:74:C4:C0:38:5E:1E:83:C5:CC:AD:A6:DB:53:BD:55:47 a=setup:actpass a=mid:audio a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=recvonly a=rtcp-mux a=rtpmap:111 opus/48000/2 a=fmtp:111 minptime=10 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:106 CN/32000 a=rtpmap:105 CN/16000 a=rtpmap:13 CN/8000 a=rtpmap:126 telephone-event/8000 a=maxptime:60 m=application 1 DTLS/SCTP 5000 c=IN IP4 0.0.0.0 a=ice-ufrag:HLGJZmXbmalHlO3k a=ice-pwd:CLXpU6gyDuxP2OIHfGFGy0zx a=ice-options:google-ice a=fingerprint:sha-256 BA:28:34:D0:61:43:60:F4:FD:6B:49:AF:6F:50:FE:57:74:C4:C0:38:5E:1E:83:C5:CC:AD:A6:DB:53:BD:55:47 a=setup:actpass a=mid:data a=sctpmap:5000 webrtc-datachannel 1024

Philipp Hancke

unread,
Aug 27, 2014, 12:22:30 PM8/27/14
to discuss...@googlegroups.com
Add {mandatory:{OfferToReceiveAudio:false, OfferToReceiveVideo:false}} as third argument to your createOffer call.


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dennis Boldt

unread,
Aug 27, 2014, 12:24:02 PM8/27/14
to discuss...@googlegroups.com
Just realized, that I used the OfferToReceiveAudio the incorrect way. I forgot the mandatory. I must use

var constraints = { 'mandatory': { 'OfferToReceiveAudio': false } };

instead of

var constraints = { 'OfferToReceiveAudio': false };

See: https://groups.google.com/forum/#!searchin/discuss-webrtc/SDP$20audio/discuss-webrtc/e_vfj91IFPs/3_eY2fxFeqIJ

Kind regards,
Dennis
Reply all
Reply to author
Forward
0 new messages