implemented ending call functionality
Signed-off-by: heyhiru <hirentimbadiya74@gmail.com>
Este commit está contenido en:
@@ -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));
|
||||
|
||||
Referencia en una nueva incidencia
Block a user