aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/user
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/user')
-rw-r--r--client-web/source/user/remote.ts4
1 files changed, 4 insertions, 0 deletions
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)
}