Webrtc mediastream don't have SDP/TLS and don't have DTLS
Asked Answered
B

1

5

I have a app can take call via WebRTC in iOS, this working normal when call with browser, but when call with android app I can't set remote sdp with error: Called with SDP without DTLS fingerprint. After searching I found that the sdp send from android don't have DTLS param: a=setup..., a=fingerprint.... and the stream media only has RTP/AVPF like below. Can you help me to fix this problem. Thanks! note: Android call with android is normal.

m=video 9 RTP/AVPF 96 97 98 99 100 101 127 123 125
Butylene answered 22/9, 2020 at 9:9 Comment(0)
B
9

Finally I found the answer, because in android app has a setting to disable encryption in peer connection Factory option cause this bug, so I change disableEncryption to false and every thing work fine.

.setOptions(PeerConnectionFactory.Options().apply {
                disableEncryption = false
                disableNetworkMonitor = true
            })
Butylene answered 24/9, 2020 at 7:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.