implemented ending call functionality

Signed-off-by: heyhiru <hirentimbadiya74@gmail.com>
Este commit está contenido en:
heyhiru
2023-11-12 21:20:42 +05:30
padre bab17fa7b7
commit 140151d5ac
Se han modificado 3 ficheros con 74 adiciones y 13 borrados

Ver fichero

@@ -13,13 +13,13 @@ class PeerService {
}
setLocalDescription = async (ans) => {
if(this.peer){
if (this.peer) {
await this.peer.setRemoteDescription(new RTCSessionDescription(ans));
}
}
getAnswer = async (offer) => {
if(this.peer){
if (this.peer) {
await this.peer.setRemoteDescription(offer);
const ans = await this.peer.createAnswer();
await this.peer.setLocalDescription(new RTCSessionDescription(ans));