aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/audio-control.html
blob: 2025581051898c6510e112d600f904836f294cbf (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html>
<head>
    <title>Basic Audio Hardware Abstraction Layer Test</title>
    <link rel="stylesheet" href="AudioBinding.css">
    <script type="text/javascript" src="AFB-websock.js"></script>
    <script type="text/javascript" src="AudioBinding.js"></script>
</head>

    
<body onload="init('hal_registry','alsacore', 'hallist')">
        
    <h1>Simple Audio Control test</h1>
    <button id="connected" onclick="init('alsa_registry','alsacore', 'getinfo');">Binder WS Fail</button>
    <br><br>
 
    <b>API Verbosity </b>
    <select id='api_verbosity' onclick='mode=this.value'>
        <option value='0'>Quiet</option>
        <option value='1'>Compact</option>
        <option value='2'>Verbose</option>
        <option value='3'>Full</option>
    </select>    
    <br>

    <br>
    <ol>
    
    <li><button onclick="callbinder('control','navigation' ,{'var': 'nav'});">Select Navigation</button></li>
    <li><button onclick="callbinder('control','multimedia' ,{'xxx': 'multi'});">Select Mutimedia</button></li>
    <li><button onclick="callbinder('control','emergency'  ,{'yyy': 'emerg'});">Select Emergency</button></li>
    <br>    
    <li><button onclick="callbinder('control','lua_dostring','print(\'Bonjours\'); return true, 4567');">LUA string</button></li>
    <li><button onclick="callbinder('control','lua_docall'  , {'func':'Adjust_Volume_Speed', 'args':[20]});">LUA function</button></li>
    <li><button onclick="callbinder('control','lua_doscript', {'script':'helloworld-lua-script.lua', args:[{'arg1':'abcd'}, {'next':7890}, {'last':'xyz'}]});">LUA script</button></li>
        
    </ol>
    
    <div id="main" style="visibility:hidden">
    <ol>
    <li>Question <pre id="question"></pre>
    <li>Response <pre id="output"></pre>
    <li>Events: <pre id="outevt"></pre>
    </ol>
    </div>