-
Notifications
You must be signed in to change notification settings - Fork 4
Restyle publisher #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/live_ex_webrtc/publisher.ex
Outdated
<div class="flex text-sm gap-4"> | ||
<div class="flex items-center gap-2"> | ||
<label for="lex-bitrate">Max Bitrate (kbps)</label> | ||
<input | ||
type="text" | ||
id="lex-bitrate" | ||
value="1500" | ||
class="rounded-lg disabled:text-gray-400 disabled:border-gray-400 focus:border-brand focus:outline-none focus:ring-0" | ||
/> | ||
</div> | ||
<%= if @publisher.simulcast_supported? do %> | ||
<div class="flex gap-2.5 items-center text-sm"> | ||
<label for="lex-simulcast">Simulcast</label> | ||
<input type="checkbox" id="lex-simulcast" class="rounded-full" /> | ||
</div> | ||
<% else %> | ||
<div class="flex gap-2.5 items-center"> | ||
<label for="lex-record-stream">Record stream</label> | ||
<input type="checkbox" class="rounded-full bg-gray-300" disabled /> | ||
<div class="flex flex-col gap-2 text-sm"> | ||
<div class="flex gap-2.5 items-center"> | ||
<label for="lex-simulcast">Simulcast</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically speaking, max bitrate and simulcast should be under "video settings" as well
However, currently the implementation for the "simulcast" checkbox behaves differently than the rest of the settings, as it gets applied immediately without pressing the "apply" button.
We'll change it later -- for now, let's leave everything as-is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪 💪 💪
@@ -326,7 +326,7 @@ defmodule LiveExWebRTC.Publisher do | |||
<div class="divide-y divide-indigo-200 flex flex-col items-stretch *:p-4"> | |||
<div class="flex justify-between items-center"> | |||
<label for="lex-audio-bitrate">Audio bitrate (kbps):</label> | |||
<p id="lext-audio-bitrate">0</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
Also, check -> elixir-webrtc/glitchtv-demo#6