Move and rename Channels option to feature more prominently in the UI

This commit is contained in:
Cameron Gutman
2024-02-26 22:00:46 -06:00
parent 84316b5ccd
commit 2e97c55005
2 changed files with 28 additions and 38 deletions

View File

@@ -92,6 +92,24 @@ editing the `conf` file in a text editor. Use the examples as reference.
min_log_level = info
`channels <https://localhost:47990/config/#channels>`__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**Description**
Sunshine can support multiple clients streaming simultaneously, at the cost of higher CPU and GPU usage.
.. note:: All connected clients share control of the same streaming session.
.. warning:: Some hardware encoders may have limitations that reduce performance with multiple streams.
**Default**
``1``
**Example**
.. code-block:: text
channels = 1
`global_prep_cmd <https://localhost:47990/config/#global_prep_cmd>`__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -913,29 +931,6 @@ keybindings
`Advanced <https://localhost:47990/config/#advanced>`__
-------------------------------------------------------
`channels <https://localhost:47990/config/#channels>`__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**Description**
This will generate distinct video streams, unlike simply broadcasting to multiple Clients.
When multicasting, it could be useful to have different configurations for each connected Client.
For instance:
- Clients connected through WAN and LAN have different bitrate constraints.
- Decoders may require different settings for color.
.. warning:: CPU usage increases for each distinct video stream generated.
**Default**
``1``
**Example**
.. code-block:: text
channels = 1
`fec_percentage <https://localhost:47990/config/#fec_percentage>`__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@@ -64,6 +64,16 @@
</div>
</div>
<!-- Maximum Connected Clients -->
<div class="mb-3">
<label for="channels" class="form-label">Maximum Connected Clients</label>
<input type="text" class="form-control" id="channels" placeholder="1" v-model="config.channels" />
<div class="form-text">
Sunshine can allow a single streaming session to be shared with multiple clients simultaneously.<br>
Note: Some hardware encoders may have limitations that reduce performance with multiple streams.
</div>
</div>
<!-- Global Prep Commands -->
<div id="global_prep_cmd" class="mb-3 d-flex flex-column">
<label class="form-label">Command Preparations</label>
@@ -721,21 +731,6 @@
<!-- Advanced Tab -->
<div v-if="currentTab === 'advanced'" class="config-page">
<!-- Channels -->
<div class="mb-3">
<label for="channels" class="form-label">Channels</label>
<input type="text" class="form-control" id="channels" placeholder="1" v-model="config.channels" />
<div class="form-text">
When multicasting, it could be useful to have different configurations for each connected Client. For example:
<ul>
<li>Clients connected through WAN and LAN have different bitrate constraints.</li>
<li>Decoders may require different settings for color</li>
</ul>
Unlike simply broadcasting to multiple Client, this will generate distinct video streams.<br>
Note, CPU usage increases for each distinct video stream generated
</div>
</div>
<!-- FEC Percentage -->
<div class="mb-3">
<label for="fec_percentage" class="form-label">FEC Percentage</label>