From 5a01d841742530e95a5a8b0663710b65ee3dda99 Mon Sep 17 00:00:00 2001 From: Gagan Suie Date: Sat, 4 May 2024 17:06:29 -0500 Subject: [PATCH] Fix: testing WHIP delete --- src/lib/WHIPClient.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/WHIPClient.ts b/src/lib/WHIPClient.ts index f7b147a3..ef709572 100644 --- a/src/lib/WHIPClient.ts +++ b/src/lib/WHIPClient.ts @@ -148,10 +148,10 @@ export default class WHIPClient extends EventTarget { * Note that once you call this method, this instance of this WHIPClient cannot be reused. */ public async disconnectStream() { - // const response = await fetch(this.endpoint, { - // method: 'DELETE', - // mode: 'cors' - // }) + await fetch(this.endpoint, { + method: 'DELETE', + mode: 'cors' + }) this.peerConnection.close() this.localStream?.getTracks().forEach((track) => track.stop()) this.videoElement.srcObject = null