From 1fb9614478adc6e107324274310ebf83146779ba Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 16 Sep 2022 21:27:09 +0200 Subject: optional streams (4, prefs for auto-enable) --- client-web/source/user/remote.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client-web/source/user') diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts index 8921b04..20ec351 100644 --- a/client-web/source/user/remote.ts +++ b/client-web/source/user/remote.ts @@ -80,6 +80,10 @@ export class RemoteUser extends User { console.log(message.provide.id); const d = Resource.create(this, message.provide) if (!d) return + if (d instanceof TrackResource) { + if (d.info.kind == "video" && PREFS.optional_video_default_enable) d.request() + if (d.info.kind == "audio" && PREFS.optional_audio_default_enable) d.request() + } this.el.append(d.el) this.resources.set(message.provide.id, d) } -- cgit v1.2.3-70-g09d2