Skip to content

Commit

Permalink
Merge pull request #1222 from gagansuie/dev
Browse files Browse the repository at this point in the history
Fix: testing delete endpoint
  • Loading branch information
gagansuie authored May 5, 2024
2 parents 545c909 + db0c89e commit e7fa305
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/lib/WHIPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
// })
const response = await fetch(this.endpoint, {
method: 'DELETE',
mode: 'cors'
})
this.peerConnection.close()
this.localStream?.getTracks().forEach((track) => track.stop())
this.videoElement.srcObject = null
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Channel/Stream/VideoItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
if (value === true) {
screenWhip = getWhip({
whip: screenWhip,
url: video.screen?.webRTC.url,
url: video.screen?.webRTCPlayback.url,
videoElement: screen_element,
trackType: `screen`
})
Expand Down

0 comments on commit e7fa305

Please sign in to comment.