Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ password=YourSlingboxPassword
; 2 or 3 for M2 hardware causes it to reboot.
VideoSource = 1

;Configure delay before sending remote commands after starting the stream (when using ?channel=xx). Your mileage may vary on this. Defaults to 10 seconds.
;RemoteDelay = 10.0

[SERVER]
;local port number for the server to listen on for connections
port=8080
Expand Down
3 changes: 2 additions & 1 deletion slingbox_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ def RemoteLocked(sender_ip):
print('name, Bad E1: Password Missing characters')
continue

remotedelay = float(slinginfo.get('RemoteDelay', 10.0))
resolution = int(slinginfo.get('Resolution', 12 ))
if resolution < 0 or resolution > 16 :
print(name, 'Invalid Resolution', resolution, 'Defaulting to 640x480')
Expand Down Expand Up @@ -943,7 +944,7 @@ def RemoteLocked(sender_ip):
if socket_ready : s_ctl.recv(8192)

if StartChannel :
if curtime - startchanneltime > 10.0 :
if curtime - startchanneltime > remotedelay :
StartChannel = send_start_channel(StartChannel, rccode)


Expand Down