summaryrefslogtreecommitdiff
path: root/client-web/source/user/local.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-16 20:46:58 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-16 20:46:58 +0200
commita3cc9f8fb1bf45741b08ce6d383c4d7cc8ea8b1f (patch)
treeddd353400f3d75b26a4158059038d8e583cd81f4 /client-web/source/user/local.ts
parent969444b32101a45d5917a3947b94bb09c3fc01a1 (diff)
downloadkeks-meet-a3cc9f8fb1bf45741b08ce6d383c4d7cc8ea8b1f.tar
keks-meet-a3cc9f8fb1bf45741b08ce6d383c4d7cc8ea8b1f.tar.bz2
keks-meet-a3cc9f8fb1bf45741b08ce6d383c4d7cc8ea8b1f.tar.zst
optional streams (2, basic functionality)
Diffstat (limited to 'client-web/source/user/local.ts')
-rw-r--r--client-web/source/user/local.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client-web/source/user/local.ts b/client-web/source/user/local.ts
index 4b057ee..e5d22e5 100644
--- a/client-web/source/user/local.ts
+++ b/client-web/source/user/local.ts
@@ -72,6 +72,10 @@ export class LocalUser extends User {
this.el.append(r.el)
const provide: ProvideInfo = r.info
this.room.signaling.send_relay({ provide })
+ r.on_destroy = () => {
+ this.el.removeChild(r.el);
+ this.room.signaling.send_relay({ provide_stop: { id: r.info.id } })
+ }
}
send_track(t: TrackHandle) {