obs-websocket-community-projects / obs-websocket-js

Consumes https://github.com/obsproject/obs-websocket
MIT License
657 stars 95 forks source link

how to create a media source by obs-websocket-js #353

Open szchengmi opened 3 months ago

szchengmi commented 3 months ago

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.