-
Notifications
You must be signed in to change notification settings - Fork 6
/
atem.html
77 lines (74 loc) · 2.95 KB
/
atem.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!-- Settings Panel -->
<script type="text/x-red" data-template-name="atem-atem">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-network"><i class="icon-bookmark"></i> Network</label>
<input type="text" id="node-input-network">
</div>
<div class="form-row">
<label for="node-input-outputMode"><i class="icon-tag"></i> Output Mode:</label>
<select id="node-input-outputMode">
<option value=""></option>
<!-- <option value="reply">Only output reply</option> -->
<option value="status">Output only status updates</option>
<option value="supported">Output supported commands only</option>
<option value="all">Output everything</option>
</select>
</div>
<div class="form-row">
<label for="node-input-sendTime"><i class="icon-tag"></i> Send Time Command:</label>
<select id="node-input-sendTime">
<option value=""></option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</div>
<div class="form-row">
<label for="node-input-sendInitialData"><i class="icon-tag"></i> Send Initial Data:</label>
<select id="node-input-sendInitialData">
<option value=""></option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</div>
<div class="form-row">
<label for="node-input-sendStatusUpdates"><i class="icon-tag"></i> Send Status Updates:</label>
<select id="node-input-sendStatusUpdates">
<option value=""></option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</div>
</script>
<!-- Register -->
<script type="text/javascript">
RED.nodes.registerType('atem-atem', {
category: 'BlackMagic',
color: '#6B6B6B',
defaults: {
name: {value: ""},
network: {value: "", required: true, type: "atem-network"},
outputMode: {value: "supported", required: true},
sendTime: {value: "yes", required: true},
sendInitialData: {value: "yes", required: true},
sendStatusUpdates: {value: "yes", required: true}
},
inputs: 1,
outputs: 1,
align: "right",
paletteLabel: "ATEM",
icon: "blackmagiclogo.png",
label: function() {
return this.name||"ATEM";
}
});
</script>
<!-- Information Panel -->
<script type="text/x-red" data-help-name="atem-atem">
<h1>Blackmagic ATEM</h1>
<a href = "https://github.com/haydendonald/blackmagic-atem-nodered"><p>Github</p></a>
<a href="https://github.com/haydendonald/blackmagic-atem-nodered/blob/master/howToUse.md"><h1>How To Use!</h1></a>
</script>