From 6d4cd494fe68b54f6f63244e9d45bfbd9813e5a3 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Tue, 15 Dec 2020 14:16:31 +0100 Subject: [PATCH] Customize web server listening port --- clapper_src/prefs.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/clapper_src/prefs.js b/clapper_src/prefs.js index 43e4467b..634647e5 100644 --- a/clapper_src/prefs.js +++ b/clapper_src/prefs.js @@ -95,8 +95,16 @@ class ClapperNetworkPage extends PrefsBase.Grid { super._init(); + let checkButton; + let spinButton; + this.addTitle('Client'); this.addPlayFlagCheckButton('Progressive download buffering', Gst.PlayFlags.DOWNLOAD); + + this.addTitle('Server'); + checkButton = this.addCheckButton('Allow remote control of the player', 'webserver-enabled'); + spinButton = this.addSpinButton('Listening port', 1024, 65535, 'webserver-port'); + checkButton.bind_property('active', spinButton, 'visible', GObject.BindingFlags.SYNC_CREATE); } });