how to control my OBS through OBS websocket JavaScript

happy2024

New Member
I am using version 30.1.1 64bit and I would like to find a way to control my OBS through OBS websocket JavaScript,
Here are my requirements:
1) In the current scene, create a media source with a path of c: \ hello. mp4, and play immediately after creation
2) In the current scenario, there is an empty media source that can be switched to c: \ hello.mp4 through obs websocket js

What should I do, thank you.
 

happy2024

New Member
I know that version 4.9 can use CreatSource, but my current version of obs-websocket-js is 5. x, and using CreatSource resulted in an error.
 
Top