this._currentRTCSession = this._ua.call(number, {
extraHeaders: [],
pcConfig: {
iceServers: [
{
}
]
},
mediaConstraints: {
audio: true, // Только аудио
video: false
},
rtcOfferConstraints: {
offerToReceiveAudio: true, // Принимаем только аудио
offerToReceiveVideo: false
},
rtcAnswerConstraints: {
offerToReceiveAudio: true,
offerToReceiveVideo: false
}
})
If you install STUN