Skip to content

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

Merged
merged 7 commits into from
Mar 6, 2025
Merged

Restyle publisher #9

merged 7 commits into from
Mar 6, 2025

Conversation

szewczukk
Copy link
Contributor

@szewczukk szewczukk commented Feb 28, 2025

Comment on lines 411 to 429
<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>
Copy link
Member

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

@szewczukk szewczukk requested a review from sgfn March 6, 2025 11:49
@szewczukk szewczukk requested a review from sgfn March 6, 2025 13:12
Copy link
Member

@sgfn sgfn left a 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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@sgfn sgfn merged commit 0ed9403 into master Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants