Update setup_obs.py

This commit is contained in:
Micha Albert 2024-08-30 17:35:51 -04:00 committed by GitHub
parent 263f91fc11
commit 88d74816cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ print(client.get_input_default_settings("browser_source").default_input_settings
if inputs == []: if inputs == []:
client.create_input(sceneName=scene, inputName="Browser", inputKind="browser_source", inputSettings={'css': 'body { margin: 0px auto; overflow: hidden; }', 'fps': 30, 'fps_custom': True, 'height': 1080, 'is_local_file': True, 'local_file': '/home/micha/index.html', 'reroute_audio': True, 'restart_when_active': False, 'shutdown': False, 'webpage_control_level': 0, 'width': 1920}, sceneItemEnabled=True) client.create_input(sceneName=scene, inputName="Browser", inputKind="browser_source", inputSettings={'css': 'body { margin: 0px auto; overflow: hidden; }', 'fps': 30, 'fps_custom': True, 'height': 1080, 'is_local_file': True, 'local_file': '/home/micha/index.html', 'reroute_audio': True, 'restart_when_active': False, 'shutdown': False, 'webpage_control_level': 0, 'width': 1920}, sceneItemEnabled=True)
client.set_stream_service_settings("rtmp_common", {'bwtest': False, 'key': 'kdm0-hum4-31wg-79se-c6us', 'protocol': 'RTMPS', 'server': 'rtmps://a.rtmps.youtube.com:443/live2', 'service': 'YouTube - RTMPS'}) client.set_stream_service_settings("rtmp_common", {'bwtest': False, 'key': 'this_key_has_been_reset_whoops', 'protocol': 'RTMPS', 'server': 'rtmps://a.rtmps.youtube.com:443/live2', 'service': 'YouTube - RTMPS'}) # i totally didn't just reset this key and it has always been invalid, 100% true
client.start_stream() client.start_stream()