Skip to content

Commit

Permalink
Tweak webcam error wording
Browse files Browse the repository at this point in the history
  • Loading branch information
domisjustanumber committed Nov 27, 2023
1 parent 1c5c376 commit cda6664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions td_scripts/Media_Pipe/websocket_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def onReceiveText(dat, rowIndex, message):

if 'error' in data:
if (data['error'] == 'webcamStartFail'):
print('Webcam failed to start, is it being used somewhere else? Please also ensure camera input is 720p, 8 bit. Component reloading')
print('Webcam failed to start. Is it being used somewhere else? Input must also be capable of 720p, 8 bit. Component reloading')
op('webBrowser1').allowCooking = False
op('webBrowser1').par.Address = op('current_url').text
run("me.parent().op('webBrowser1').allowCooking = True", delayMilliSeconds = 3000)
me.parent().addScriptError('Webcam failed to start, is it being used somewhere else? Please also ensure camera input is 720p, 8 bit. Component reloading')
me.parent().addScriptError('Webcam failed to start. Is it being used somewhere else? Input must also be capable of 720p, 8 bit. Component reloading')
if 'success' in data:
me.parent().clearScriptErrors(recurse=False, error='Webcam failed*')

Expand Down

0 comments on commit cda6664

Please sign in to comment.