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