Remove useless tweaks

This commit is contained in:
Tom Sightler
2025-03-28 22:49:25 -04:00
parent 1f6ff12805
commit 66bcc19d85
6 changed files with 42 additions and 39 deletions

View File

@@ -48,13 +48,13 @@ export class LiveStream {
}
clearSession(status) {
this.status = status
this.session = false
this.altVideoData = false
this.session = false
this.status = status
this.unbindAltVideoPorts()
}
bindAltVideoPorts() {
console.log(this.altVideoData.sdp)
if (this.altVideoData) {
this.rtpSocket = dgram.createSocket('udp4')
this.rtcpSocket = dgram.createSocket('udp4')
@@ -108,7 +108,6 @@ export class LiveStream {
}
async stop() {
this.unbindAltVideoPorts()
if (this.session) {
this.worker.postMessage({ command: 'stop' })
}