Cannot get remote side audio in WebRTC telephony call
I can enable Web-side audio by the below code
const audioTracks = stream.getAudioTracks();
console.log('Got stream with constraints:', constraints);
console.log('Using audio device: ' + audioTracks[0].label);
stream.oninactive = function() {
console.log('Stream ended');
};
audioTracks[0].enabled = true;
But how can I capture remote Telephone-side audio from the event/API???
Currently I cannot hear telephone-side sound from web-side.
-
Hi,
In order to use the telephony features, try using Telephony Service APIs: https://hub.openrainbow.com/#/documentation/doc/sdk/web/api/pbx
Regards,
Konrad Hyzy
-
Konrad
I have broswed and use callbyNumber() for Telephony Service API.
On phone side it can listen to Web user but can't verse vise.
There is no API told how to obtain the media once the call is established.
So in Web side, my client can init its media and the phone user can listen but NOT verse visa.
Or could point out which part of API is about getting media once call is established?
NK
-
Hi again,
would you be able to describe your use case? I would need to figure out what exactly do you want to achieve.
Is it a Telephony-WebRTC call? What are both users' capabilities? What is the SDK version and your browser version?
(you may be interested in checking the potential users capabilities here: https://hub.openrainbow.com/#/documentation/doc/hub/users-in-rainbow)
Thanks in advance for your response.
Konrad
Please sign in to leave a comment.
Comments
3 comments