-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
executable file
·58 lines (55 loc) · 2.17 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>AES67 Sender GUI</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div id="app" v-cloak>
<div id="errors" class="alert alert-danger" v-if="errors.length > 0">
<span v-for="error in errors">{{ error }}<br /></span>
</div>
<div class="row">
<div class="col">
<h5>Network Interface</h5>
<form class="form-inline">
<select class="form-control" id="networkdevice" v-model="settings.addr">
<option v-for="device in network" v-bind:value="device.addr">{{ device.name }}: {{device.addr}}</option>
</select>
<button class="btn btn-primary" id="applyNetworkSettings" v-on:click="setNetworkInterface()" disabled style="margin-left: 10px;">Apply</button>
</form>
</div>
<div class="col">
<h5>PTP Status</h5>
<div>
PTP Status: <span class="badge" v-bind:class="{ 'badge-success': ptp.sync, 'btn-danger': !ptp.sync && ptp.master == '', 'btn-warning': !ptp.sync && ptp.master != '' }" v-html="ptp.sync ? 'Locked' : (ptp.master =='' ? 'Unlocked' : 'Locking')">Locked</span><br />
<span>PTP Master: {{ptp.master == '' ? 'None' : ptp.master.toUpperCase().split(':')[0]}}</span><br />
</div>
</div>
</div>
<table class="table table-sm">
<h5>Audiodevices</h5>
<thead>
<th>Device Name</th>
<th>Channel #</th>
<th>Multicast Address</th>
<th></th>
</thead>
<tbody>
<tr v-for="device in audiodevices">
<td>{{ device.name }}</td>
<td>{{ device.channels }}</td>
<td>{{ device.multicast }}</td>
<td><button class="btn btn-success btn-sm" v-on:click="startAudio(device)" v-bind:class="{ 'badge-success': !device.enabled, 'btn-danger': device.enabled }" v-html="device.enabled ? 'Disable' : 'Enable'">Enable</button></td>
</tr>
</tbody>
</table>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>