Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-28 16:52:51 +0300
committerJoas Schilling <coding@schilljs.com>2017-09-28 16:53:59 +0300
commit9e2e39a614a034fd830e014e0176c3b651d3e967 (patch)
treee93f29d623fd0dcd2cf0b42dfced527240aed1fb /templates
parent2a33f7fd1a14dafd726ce912547f6df976b97ae8 (diff)
Allow multiple turn servers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/settings/admin/turn-server.php34
1 files changed, 4 insertions, 30 deletions
diff --git a/templates/settings/admin/turn-server.php b/templates/settings/admin/turn-server.php
index 19946828e..ef2376d8f 100644
--- a/templates/settings/admin/turn-server.php
+++ b/templates/settings/admin/turn-server.php
@@ -1,40 +1,14 @@
<?php
/** @var array $_ */
/** @var \OCP\IL10N $l */
-script('spreed', ['settings-admin']);
+script('spreed', ['admin/turn-server']);
style('spreed', ['settings-admin']);
?>
<div class="videocalls section">
<h3><?php p($l->t('TURN server')) ?></h3>
<p class="settings-hint"><?php p($l->t('The TURN server is used to proxy the traffic from participants behind a firewall.')); ?></p>
- <p>
- <label for="turn_server"><?php p($l->t('TURN server')) ?></label>
- <input type="text" id="turn_server"
- name="turn_server" placeholder="https://turn.example.org"
- value="<?php p($_['turnServer']) ?>" />
- </p>
- <p>
- <label for="turn_server_secret"><?php p($l->t('TURN server shared secret')) ?></label>
- <input type="text" id="turn_server_secret"
- name="turn_server_secret" placeholder="shared secret"
- value="<?php p($_['turnServerSecret']) ?>" />
- </p>
- <p>
- <label for="turn_server_protocols"><?php p($l->t('TURN server protocols')) ?></label>
- <select id="turn_server_protocols" name="turn_server_protocols">
- <option value="udp,tcp"
- <?php p($_['turnServerProtocols'] === 'udp,tcp' ? 'selected' : '') ?>>
- <?php p($l->t('UDP and TCP')) ?>
- </option>
- <option value="udp"
- <?php p($_['turnServerProtocols'] === 'udp' ? 'selected' : '') ?>>
- <?php p($l->t('UDP only')) ?>
- </option>
- <option value="tcp"
- <?php p($_['turnServerProtocols'] === 'tcp' ? 'selected' : '') ?>>
- <?php p($l->t('TCP only')) ?>
- </option>
- </select>
- </p>
+
+ <div class="turn-servers" data-servers="<?php p($_['turnServer']) ?>">
+ </div>
</div>