Skip to content

Commit

Permalink
webui,sess: disable source view
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Oct 1, 2024
1 parent aea0178 commit 798669c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ static void pc_estab_handler(struct media_track *media, void *arg)
stream_enable(media_get_stream(media), false);
stream_enable_tx(media_get_stream(media), true);

/* Enable/Disable Source view */
#if 0
if (!sess->user->host)
slmix_source_append_all(sess->mix, NULL,
sess->user->id);
Expand All @@ -150,6 +152,7 @@ static void pc_estab_handler(struct media_track *media, void *arg)
slmix_source_start(src, sess->mix);
}
}
#endif

break;

Expand Down
2 changes: 1 addition & 1 deletion webui/src/components/WebrtcVideo.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="flex">
<div v-show="Webrtc.state.value >= WebrtcState.Listening" class="w-1/3 mr-2">
<div v-show="Webrtc.state.value >= WebrtcState.Listening" class="w-1/3 mr-2 hidden">
<div v-for="item in sources" class="my-1">
<video :id="'source' + item.rtc?.id" playsinline autoplay muted preload="none"></video>
<div>
Expand Down

0 comments on commit 798669c

Please sign in to comment.