-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.js
More file actions
29 lines (28 loc) · 777 Bytes
/
example.js
File metadata and controls
29 lines (28 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var OBSRemote = require('./main.js');
var opts = {pass: "admin", host: "127.0.0.1"};
var obs = new OBSRemote(opts);
obs.events.on('connect', function(){
// obs.MuteMic();
// obs.UnMuteMic();
//obs.ToggleMicMute();
// obs.MuteDesktop();
// obs.UnMuteDesktop();
// obs.ToggleDesktopMute();
// obs.SetMicVolume(0);
// obs.SetDesktopVolume(0);
// obs.StartStream();
// obs.StopStream();
// obs.ToggleStream();
obs.StartPreview();
// obs.StopPreview();
// obs.TogglePreview();
// obs.SetSceneByName('Title');
// obs.SetScene(0);
// obs.SetSourceVisibleByName('foo');
// obs.SetSourceInvisibleByName('foo');
// obs.SetSourceVisible(0);
// obs.SetSourceInvisible(0);
// obs.ShiftSourceOrder(0,1);
// obs.SetSourceOrder([]);
// obs.SetSourceOrderByName([]);
});