question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

audio only communication

See original GitHub issue

Hi Oney,

I’m trying to get audio only communication to work and having no lucks now. Since every examples are all video based, my question is:

  • should audio-only rendering use RTCView or use some components like react-native-audio?
  • if mediaConstraints={"audio": true, "video": false} then it should not include video related ice info in sdp right?

If it needs to do some PR, please shed some light on it, i’d like to do that. Thanks for the great job.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
oneycommented, Mar 12, 2016

Yes, it support audio-only. You can just use PeerConnection and don’t set stream’s URL to a RTCView

0reactions
quangvinh2080commented, Nov 23, 2019

Hi. Sorry because I have the same issue and the resolution still not work for me. I’m trying to find a way to play media got from the peerConnection.onaddstream. Currently, its callback got a stream after I send invite but I still can’t hear any stream media

My peer.onaddstream handler

peer.onaddstream = function(event) {
     var remoteStream = event.stream;
     setStream(remoteStream.toURL());
};

The setStream will change state of RTCView’s streamURL props. I already tried to remove it but still not work

sip.invitecontext.sessionDescriptionHandler | SessionDescriptionHandlerOptions: {"constraints":{},"peerConnectionOptions":{}}
sip.invitecontext.sessionDescriptionHandler | initPeerConnection
sip.invitecontext.sessionDescriptionHandler | New peer connection created
sip.invitecontext.sessionDescriptionHandler | acquiring local media
sip.invitecontext.sessionDescriptionHandler | acquired local media streams
sip.invitecontext.sessionDescriptionHandler | createOffer
sip.invitecontext.sessionDescriptionHandler | resetIceGatheringComplete
sip.invitecontext.sessionDescriptionHandler | Setting local sdp.
sip.invitecontext.sessionDescriptionHandler | sdp is v=0
o=- 3327275265645139439 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS E548D7C5-50FD-4374-A092-3179C3982A11
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:W2/u
a=ice-pwd:UO6aSo88KPivxArCyDan6ryy
a=ice-options:trickle renomination
a=fingerprint:sha-256 10:A3:47:04:68:1F:33:CC:E7:9A:A3:4D:82:96:8C:58:54:94:AC:99:CC:E3:25:B8:37:85:58:50:C2:84:F6:BD
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
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:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:1153752113 cname:LztCtlZcGUG6q611
a=ssrc:1153752113 msid:E548D7C5-50FD-4374-A092-3179C3982A11 B72DE834-233B-482F-BBAD-32F0E5EE4277
a=ssrc:1153752113 mslabel:E548D7C5-50FD-4374-A092-3179C3982A11
a=ssrc:1153752113 label:B72DE834-233B-482F-BBAD-32F0E5EE4277
sip.invitecontext.sessionDescriptionHandler | waitForIceGatheringComplete
sip.invitecontext.sessionDescriptionHandler | ICE is not complete. Returning promise
sip.invitecontext.sessionDescriptionHandler | RTCIceGatheringState changed: gathering
sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:917273023 1 udp 2122260223 192.168.10.19 64106 typ host generation 0 ufrag W2/u network-id 1 network-cost 10
sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:3085205259 1 udp 1686052607 1.53.3.242 64106 typ srflx raddr 192.168.10.19 rport 64106 generation 0 ufrag W2/u network-id 1 network-cost 10
sip.invitecontext.sessionDescriptionHandler | ICE candidate received: candidate:2016380239 1 tcp 1518280447 192.168.10.19 51465 typ host tcptype passive generation 0 ufrag W2/u network-id 1 network-cost 10
sip.invitecontext.sessionDescriptionHandler | ICE candidate gathering complete
sip.invitecontext.sessionDescriptionHandler | RTCIceGatheringState changed: complete
sip.invite-dialog | INVITE dialog mnp2ka5v4stt2vfa9djg84mttrpge3rgp04aXK3jreS constructed
sip.invitecontext.sessionDescriptionHandler | ICE Connection State changed to iceConnectionChecking
sip.invite-dialog | INVITE dialog mnp2ka5v4stt2vfa9djg84mttrpge3rgp04aXK3jreS sending ACK request
sip.invite-dialog | INVITE dialog mnp2ka5v4stt2vfa9djg84mttrpge3rgp04aXK3jreS received BYE request
sip.inviteclientcontext | closing INVITE session mnp2ka5v4stt2vfa9djg84mttrpge3
sip.invitecontext.sessionDescriptionHandler | closing PeerConnection
sip.invitecontext.sessionDescriptionHandler | resetIceGatheringComplete
sip.invite-dialog | INVITE dialog mnp2ka5v4stt2vfa9djg84mttrpge3rgp04aXK3jreS destroyed
sip.invitecontext.sessionDescriptionHandler | ICE Connection State changed to iceConnectionClosed

Thanks so much for all the support !

Platform information

  • React Native version: 0.61.4
  • Plugin version: 1.75.2
  • OS: iOS
  • OS version: 12.4
Read more comments on GitHub >

github_iconTop Results From Across the Web

CMS Proposes Audio-Only Communication for Telehealth to ...
CMS has proposed limiting the use of an audio-only interactive telecommunications system for mental health services for cases in which practitioners have ...
Read more >
Medicare "Audio-Only" Telehealth Services - CodingIntel
There are now codes on CMS's list of telehealth services that do not require audio and video communication equipment, but can be performed...
Read more >
New modifier for audio-only telehealth in 2022 - AAFP
CPT labels modifier 93 as “Synchronous telemedicine service rendered via telephone or other real-time interactive audio-only telecommunications ...
Read more >
Audio-only telehealth: How to maintain privacy and security
Providing phone-only or audio-only services is a great way to help patients access care when video telehealth isn't an option.
Read more >
The Future of Telehealth: How Audio-Only Services Improve ...
Of all the temporary changes that CMS has made to telehealth rules, audio-only communications has the greatest potential for improving healthcare access and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found