Closed mishcazzulani closed 3 years ago
obs.connect()
returns a promise, as it does not happen straight away, so you need to chain a .then()
on the end to know when it has connected. Changing your code to
obs.connect({ address: '10.0.0.70:4444' }).then(() => obs.StartRecording())
should make it start recording.
hello i'm trying to build a simple webpage that when opened connects to obs-websocket and starts recording
i'm using obs 23.1.0 obs-websocket 4.6.1 and obs-websocket-js 3.1.0
here is my code:
it connects but doesn't start recording