aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/UNICENS.html
blob: fe25fe160488b5348d4baf4abf79b8fff1e49a28 (plain)
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
<html>
<head>
    <title>Hello world test</title>

    <script type="text/javascript" src="AFB-websock.js"></script>
    <script type="text/javascript" src="AudioBinding.js"></script>


<body onload="init();">
    <h1>Hello world test</h1>
    <button id="connected" onclick="init()">Binder WS Fail</button></li>
    <br>
    <ol>
    <li><button onclick="callbinder('UNICENS','configure', {filename:'data/config_multichannel_audio_kit.xml'})">Parse XML and Start UNICENS</button></li>
    <li><button onclick="callbinder('UNICENS','volume', {channel:'master', volume: 255})">Set Master Volume to 255</button></li>
    <li><button onclick="callbinder('UNICENS','volume', {channel:'master', volume: 200})">Set Master Volume to 200</button></li>
    <li><button onclick="callbinder('UNICENS','volume', [[0,200], [1,255]])">Set left=200 right=250</button></li>
    <li><button onclick="callbinder('UNICENS','volume', [[0,255], [1,200]])">Set right=250 left=200</button></li>
    <li><button onclick="callbinder('UNICENS','volume', [[0,255], [1,255]])">Set right=255 left=255</button></li>
    </ol>
    <br>
    <div id="main" style="visibility:hidden">
    <ol>
    <li>Question <div id="question"></div>
    <li>Response <div id="output"></div>
    <li>Events: <div id="outevt"></div>
    </ol>
    </div>