Skip to content

Commit 1421fdc

Browse files
committed
init
0 parents  commit 1421fdc

21 files changed

+10144
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
private.old

auto-discovery.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var Atem = require('./index');
2+
3+
Atem.discover(function(ip) {console.log(ip)});

example.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const Atem = require('./');
2+
const atem = new Atem();
3+
4+
atem.on('connectionStateChange', function(state) {
5+
console.log('state', state);
6+
});
7+
8+
atem.on('productNameChange', function(name) {
9+
console.log('name', name);
10+
});
11+
12+
atem.on('sourceConfiguration', function(id, config, info) {
13+
console.log(id, info, config.videoInterface);
14+
});
15+
16+
atem.on('programBus', function(source) {
17+
console.log('program bus changed to', source);
18+
});
19+
20+
atem.ip = "10.1.0.210";
21+
atem.connect();

0 commit comments

Comments
 (0)