File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 17
17
TARGET_VIDEO_BITRATE_KBPS = 16000
18
18
MIN_VIDEO_BITRATE_KBPS = 500
19
19
20
- DATA_WEBSOCKET_PORT = 8082
21
20
UINPUT_MOUSE_SOCKET = ""
22
21
JS_SOCKET_PATH = "/tmp"
23
22
ENABLE_CLIPBOARD = True
@@ -3268,6 +3267,12 @@ async def main():
3268
3267
type = int ,
3269
3268
help = "Watermark location enum (0-6). Defaults to 4 (Bottom Right) if path is set and this is not specified or invalid." ,
3270
3269
)
3270
+ parser .add_argument (
3271
+ "--port" ,
3272
+ default = os .environ .get ("CUSTOM_WS_PORT" , "8082" ),
3273
+ type = int ,
3274
+ help = "The port for the data websocket server. Overrides the CUSTOM_WS_PORT environment variable." ,
3275
+ )
3271
3276
parser .add_argument ("--debug" , action = "store_true" , help = "Enable debug logging" )
3272
3277
args , unknown = parser .parse_known_args ()
3273
3278
global TARGET_FRAMERATE , TARGET_VIDEO_BITRATE_KBPS
@@ -3304,7 +3309,7 @@ async def main():
3304
3309
)
3305
3310
3306
3311
data_server = DataStreamingServer (
3307
- port = DATA_WEBSOCKET_PORT ,
3312
+ port = args . port ,
3308
3313
app = app ,
3309
3314
uinput_mouse_socket = UINPUT_MOUSE_SOCKET ,
3310
3315
js_socket_path = JS_SOCKET_PATH ,
You can’t perform that action at this time.
0 commit comments