summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authorTai Vuong <tvuong@audiokinetic.com>2017-10-30 15:18:33 -0400
committerTai Vuong <tvuong@audiokinetic.com>2017-10-30 15:18:33 -0400
commitc46955de2731563d1991691cd1a7986f05f019e3 (patch)
treee0375428c2c9ad60bbfb8cc7f53f157770232ea6 /htdocs
parent53aea8f073c5b4ad859c39f903fdbcaccd2fc5b8 (diff)
parent8a584f01b46d251fdc5de8b071eff755d99f0090 (diff)
isolate structure use in policy util from HLB
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/CMakeLists.txt2
-rw-r--r--htdocs/assets/content-background-car-wide.pngbin0 -> 1215422 bytes
-rw-r--r--htdocs/assets/content-background-car.pngbin0 -> 244208 bytes
-rw-r--r--htdocs/assets/content-background.pngbin0 -> 210766 bytes
-rw-r--r--htdocs/assets/emergency.pngbin0 -> 20039 bytes
-rw-r--r--htdocs/assets/favicon.icobin0 -> 1150 bytes
-rw-r--r--htdocs/assets/iot-bzh-logo-small.pngbin0 -> 14449 bytes
-rw-r--r--htdocs/assets/messages.pngbin0 -> 14597 bytes
-rw-r--r--htdocs/assets/music-pause.pngbin0 -> 100761 bytes
-rw-r--r--htdocs/assets/music-play.pngbin0 -> 110798 bytes
-rw-r--r--htdocs/assets/phone-call-emit1.pngbin0 -> 46021 bytes
-rw-r--r--htdocs/assets/phone-call-emit2.pngbin0 -> 56311 bytes
-rw-r--r--htdocs/assets/phone-call-emit3.pngbin0 -> 70218 bytes
-rw-r--r--htdocs/assets/phone-call.pngbin0 -> 37089 bytes
-rw-r--r--htdocs/audio-control.html46
-rw-r--r--htdocs/audio-logic.html9
-rw-r--r--htdocs/audiobackend.html35
-rw-r--r--htdocs/audiohl-demo.html47
-rw-r--r--htdocs/audiohl.html195
-rw-r--r--htdocs/index.html7
20 files changed, 111 insertions, 230 deletions
diff --git a/htdocs/CMakeLists.txt b/htdocs/CMakeLists.txt
index 2e51461..c08a493 100644
--- a/htdocs/CMakeLists.txt
+++ b/htdocs/CMakeLists.txt
@@ -23,7 +23,7 @@
##################################################
PROJECT_TARGET_ADD(htdocs)
- file(GLOB SOURCE_FILES "*.html" "*.js" "*.jpg" "*.css")
+ file(GLOB SOURCE_FILES LIST_DIRECTORIES true "*.html" "*.js" "*.jpg" "*.css")
add_input_files("${SOURCE_FILES}")
diff --git a/htdocs/assets/content-background-car-wide.png b/htdocs/assets/content-background-car-wide.png
new file mode 100644
index 0000000..073d1b9
--- /dev/null
+++ b/htdocs/assets/content-background-car-wide.png
Binary files differ
diff --git a/htdocs/assets/content-background-car.png b/htdocs/assets/content-background-car.png
new file mode 100644
index 0000000..4bcde72
--- /dev/null
+++ b/htdocs/assets/content-background-car.png
Binary files differ
diff --git a/htdocs/assets/content-background.png b/htdocs/assets/content-background.png
new file mode 100644
index 0000000..9be581c
--- /dev/null
+++ b/htdocs/assets/content-background.png
Binary files differ
diff --git a/htdocs/assets/emergency.png b/htdocs/assets/emergency.png
new file mode 100644
index 0000000..c959b04
--- /dev/null
+++ b/htdocs/assets/emergency.png
Binary files differ
diff --git a/htdocs/assets/favicon.ico b/htdocs/assets/favicon.ico
new file mode 100644
index 0000000..eeb7ab7
--- /dev/null
+++ b/htdocs/assets/favicon.ico
Binary files differ
diff --git a/htdocs/assets/iot-bzh-logo-small.png b/htdocs/assets/iot-bzh-logo-small.png
new file mode 100644
index 0000000..2c3b2ae
--- /dev/null
+++ b/htdocs/assets/iot-bzh-logo-small.png
Binary files differ
diff --git a/htdocs/assets/messages.png b/htdocs/assets/messages.png
new file mode 100644
index 0000000..4919452
--- /dev/null
+++ b/htdocs/assets/messages.png
Binary files differ
diff --git a/htdocs/assets/music-pause.png b/htdocs/assets/music-pause.png
new file mode 100644
index 0000000..790a6c4
--- /dev/null
+++ b/htdocs/assets/music-pause.png
Binary files differ
diff --git a/htdocs/assets/music-play.png b/htdocs/assets/music-play.png
new file mode 100644
index 0000000..37c18e3
--- /dev/null
+++ b/htdocs/assets/music-play.png
Binary files differ
diff --git a/htdocs/assets/phone-call-emit1.png b/htdocs/assets/phone-call-emit1.png
new file mode 100644
index 0000000..a8d863b
--- /dev/null
+++ b/htdocs/assets/phone-call-emit1.png
Binary files differ
diff --git a/htdocs/assets/phone-call-emit2.png b/htdocs/assets/phone-call-emit2.png
new file mode 100644
index 0000000..14c8cbe
--- /dev/null
+++ b/htdocs/assets/phone-call-emit2.png
Binary files differ
diff --git a/htdocs/assets/phone-call-emit3.png b/htdocs/assets/phone-call-emit3.png
new file mode 100644
index 0000000..5283a40
--- /dev/null
+++ b/htdocs/assets/phone-call-emit3.png
Binary files differ
diff --git a/htdocs/assets/phone-call.png b/htdocs/assets/phone-call.png
new file mode 100644
index 0000000..40007d2
--- /dev/null
+++ b/htdocs/assets/phone-call.png
Binary files differ
diff --git a/htdocs/audio-control.html b/htdocs/audio-control.html
deleted file mode 100644
index 6b7872f..0000000
--- a/htdocs/audio-control.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<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('hal_registry','alsacore', 'hallist')">Binder WS Fail</button>
- <br><br>
- <b>Selected HAL </b>
- <select id='hal_registry'></select>
-
- <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','dispatch' ,{'target':'navigation','args':{'apihal':sndcard}});">Dispatch Navigation</button></li>
- <li><button onclick="callbinder('control','dispatch' ,{'target':'multimedia','args':{'apihal':sndcard}});">Dispatch Mutimedia</button></li>
- <li><button onclick="callbinder('control','dispatch' ,{'target':'emergency' });">Dispatch Emergency</button></li>
- <br>
- <li><button onclick="callbinder('control','lua_dostring','print(\'Bonjours\'); return true, 1234');">LUA string</button></li>
- <li><button onclick="callbinder('control','lua_docall' , {'func':'_Simple_Echo_Args', 'args':{speed:20}});">LUA function</button></li>
- <li><button onclick="callbinder('control','lua_doscript', {'script':'helloworld.lua', args:{'arg1':'abcd', 'next':7890, 'last':[1,2,3,4]}});">LUA script</button></li>
- <li><button onclick="callbinder('control','lua_docall' , {'func':'_Simple_Timer_Test', args:{label:'MyTimer', 'delay':3000, 'count':10}});">LUA Timer</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>
diff --git a/htdocs/audio-logic.html b/htdocs/audio-logic.html
deleted file mode 100644
index c31282a..0000000
--- a/htdocs/audio-logic.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<html>
-<head>
- <title>High Level API Simple Test Page</title>
-
- <script type="text/javascript" src="AFB-websock.js"></script>
- <script type="text/javascript" src="AudioBinding.js"></script>
-</head>
-
-ToBeDone \ No newline at end of file
diff --git a/htdocs/audiobackend.html b/htdocs/audiobackend.html
new file mode 100644
index 0000000..a7c8f41
--- /dev/null
+++ b/htdocs/audiobackend.html
@@ -0,0 +1,35 @@
+<html>
+<head>
+ <link rel="stylesheet" href="AudioBinding.css">
+ <title>Audio High Level Test</title>
+
+ <script type="text/javascript" src="AFB-websock.js"></script>
+ <script type="text/javascript" src="AudioBinding.js"></script>
+</head>
+
+<body onload="init('audiod')">
+
+ <button id="connected" onclick="init('audiod');">Binder WS Fail</button> <br><br>
+ <br>
+ <ol>
+ <li><button onclick="callbinder('audiod','play', {device_name:'plug:Entertainment_Main', filepath:'style.wav', loop:0})">play('hw:0', 'style.wav')</button></li>
+ <li><button onclick="callbinder('audiod','play', {device_name:'hw:0', filepath:'application.wav', loop:1})">playloop('hw:0', 'application.wav')</button></li>
+ <li><button onclick="callbinder('audiod','play', {device_name:'hw:0', filepath:'application.wav', loop:0})">play('hw:0', 'application.wav')</button></li>
+ <li><button onclick="callbinder('audiod','stop', {audio_role:4})">stop()</button></li>
+ <li><button onclick="callbinder('audiod','pause', {audio_role:4})">pause()</button></li>
+ <li><button onclick="callbinder('audiod','subscribe', {audio_role:4})">subscribe()</button></li>
+ <li><button onclick="callbinder('audiod','unsubscribe', {audio_role:4})">unsubscribe()</button></li>
+ <li><button onclick="callbinder('audiod','post_event', {event_name:'speed', event_parameter:{speed:10}})">post_event('event_name:speed, {speed:10}')</button></li>
+
+ </li>
+
+ <br>
+ </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>
diff --git a/htdocs/audiohl-demo.html b/htdocs/audiohl-demo.html
deleted file mode 100644
index e222707..0000000
--- a/htdocs/audiohl-demo.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-<head>
- <link rel="stylesheet" href="AudioBinding.css">
- <title>Audio High Level Test</title>
-
- <script type="text/javascript" src="AFB-websock.js"></script>
- <script type="text/javascript" src="AudioBinding.js"></script>
-</head>
-
-<body onload="init('audiohl')">
-
- <button id="connected" onclick="init('audiohl');">Binder WS Fail</button>
-
- <li>Use Case 1: Automatic EndPoint Selection</li>
- <br>
- <ol>
- <li><button onclick="callbinder('audiohl','stream_open', {audio_role:4,endpoint_type:1})">stream_open('Entertainment','Sink')</button></li>
- <li><button onclick="callbinder('audiohl','set_endpoint_volume', {endpoint_type:1,endpoint_id:2,volume:'10+'})">set_endpoint_volume('Sink',2,'10+')</button></li>
- <li><button onclick="callbinder('audiohl','stream_close', {stream_id:1})">stream_close(streamID)</button></li>
- <br>
- </ol>
-
- <li>Use Case 2: User Select EndPoint</li>
- <br>
- <ol>
- <li><button onclick="callbinder('audiohl','get_sinks', {audio_role:4})">get_sinks('Entertainment')</button></li>
- <li><button onclick="callbinder('audiohl','stream_open', {audio_role:4,endpoint_type:1,endpoint_id:10})">stream_open('Entertainment','Sink',sinkID)</button></li>
- <li><button onclick="callbinder('audiohl','post_sound_event', {event_name:'PlaySound',media_name:'HomeButton.wav'})">post_sound_event('PlaySound','HomeButton.wav')</button></li>
- <li><button onclick="callbinder('audiohl','stream_close', {stream_id:1})">stream_close(streamID)</button></li>
- <br>
- </ol>
-
- <li>Use Case 3: Select Routing</li>
- <br>
- <ol>
- <li><button onclick="callbinder('audiohl','get_available_routings', {audio_role:4})">get_available_routings('Entertainment')</button></li>
- <li><button onclick="callbinder('audiohl','add_routing', {audio_role:4,routing_id:2})">add_routing('Entertainment',routingID)</button></li>
- <br>
- </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>
diff --git a/htdocs/audiohl.html b/htdocs/audiohl.html
index 31a28fe..418cf7a 100644
--- a/htdocs/audiohl.html
+++ b/htdocs/audiohl.html
@@ -1,141 +1,90 @@
<html>
+
<head>
<link rel="stylesheet" href="AudioBinding.css">
<title>Audio High Level Test</title>
-
+
<script type="text/javascript" src="AFB-websock.js"></script>
<script type="text/javascript" src="AudioBinding.js"></script>
</head>
-
-<body onload="init('audiohl')">
-
- <button id="connected" onclick="init('audiohl');">Binder WS Fail</button>
+
+<body onload="init('audiohl'); ep_type='sink' ; ar='Entertainment' ; ep_id=0 ; s_id=0 ; prop_val=0 ; vol_val='0' ; p_name='balance' ; st_state='idle' ; st_mute='off'">
+
+ <button id="connected" onclick="init('audiohl');">Binder WS Fail</button> <br><br>
+ <button id="monitoring" onclick="window.open('/monitoring/monitor.html','_monitor_audio')">Debug/Monitoring</a></button>
<b>Audio Role</b>
<select select_id='audiorole_list' onclick='ar=this.value'>
- <option selected value=''>Select...</option>
- <option value='warning' >Warning</option>
- <option value='guidance'>Guidance</option>
- <option value='notification'>Notification</option>
- <option value='communication'>Communication</option>
- <option value='entertainment'>Entertainment</option>
- <option value='system'>System</option>
- <option value='startup'>Startup</option>
- <option value='shutdown'>Shutdown</option>
- </select>
+ <option value='Warning' >Warning</option>
+ <option value='Guidance'>Guidance</option>
+ <option value='Notification'>Notification</option>
+ <option value='Communication'>Communication</option>
+ <option selected value='Entertainment'>Entertainment</option>
+ <option value='System'>System</option>
+ <option value='Startup'>Startup</option>
+ <option value='Shutdown'>Shutdown</option>
+ </select><br>
<b>Endpoint Type</b>
- <select select_id='endpoint_type_list' onclick='ep_type=this.selectedIndex'>
- <option value=0>Source</option>
- <option value=1>Sink</option>
- <option selected value=''>Select...</option>
- </select>
- <b>Endpoint ID</b>
- <select select_id='endpoint_id_list' onclick='ep_id=this.selectedIndex'>
- <option value='0'>0</option>
- <option value='1'>1</option>
- <option value='2'>2</option>
- <option value='3'>3</option>
- <option value='4'>4</option>
- <option value='5'>5</option>
- <option value='6'>6</option>
- <option value='7'>7</option>
- <option value='8'>8</option>
- <option value='9'>9</option>
- <option value='10'>10</option>
- <option value='11'>11</option>
- <option value='12'>12</option>
- <option value='13'>13</option>
- <option value='14'>14</option>
- <option value='15'>15</option>
- <option value='16'>16</option>
- <option value='17'>17</option>
- <option value='18'>18</option>
- <option value='19'>19</option>
- <option selected value=''>Select...</option>
- </select>
- <b>Stream ID</b>
- <select select_id='stream_id_list' onclick='s_id=this.selectedIndex'>
- <option value='0'>0</option>
- <option value='1'>1</option>
- <option value='2'>2</option>
- <option value='3'>3</option>
- <option value='4'>4</option>
- <option value='5'>5</option>
- <option value='6'>6</option>
- <option value='7'>7</option>
- <option value='8'>8</option>
- <option value='9'>9</option>
- <option value='10'>10</option>
- <option value='11'>11</option>
- <option value='12'>12</option>
- <option value='13'>13</option>
- <option value='14'>14</option>
- <option value='15'>15</option>
- <option value='16'>16</option>
- <option value='17'>17</option>
- <option value='18'>18</option>
- <option value='19'>19</option>
- <option selected value=''>Select...</option>
- </select>
- <b>Property</b>
- <select select_id='property_name_list' onclick='p_name=this.value'>
- <option value='balance'>Balance</option>
+ <select select_id='endpoint_type_list' onclick='ep_type=this.value'>
+ <option value='source'>Source</option>
+ <option selected value='sink'>Sink</option>
+ </select><br>
+ <b><label for="epidsel">Endpoint ID</label></b>
+ <input id="epidsel" type="number" value="0" min=0 step=1 maxlength=4 onchange='ep_id=eval(parseInt(this.value))'><br>
+ <b><label for="stidsel">Stream ID</label></b>
+ <input id="stidsel" type="number" value="0" min=0 step=1 maxlength=4 onchange='s_id=eval(parseInt(this.value))'><br>
+ <b>Stream State</b>
+ <select select_id='stream_state' onclick='st_state=this.value'>
+ <option selected value='idle'>Idle</option>
+ <option value='running'>Running</option>
+ <option value='paused'>Paused</option>
+ </select><br>
+ <b>Stream Mute State</b>
+ <select select_id='stream_mute' onclick='st_mute=this.value'>
+ <option selected value='off'>Unmuted</option>
+ <option value='on'>Muted</option>
+ </select><br>
+ <b>Property</b>
+ <select select_id='property_name_list' onclick='p_name=this.value'>
+ <option selected value='balance'>Balance</option>
<option value='fade'>Fade</option>
- <option value='eq_low'>EQ Low</option>
+ <option value='eq_bass'>EQ Bass</option>
<option value='eq_mid'>EQ Mid</option>
- <option value='eq_high'>EQ High</option>
- <option selected value=''>Select...</option>
- </select>
-
- <b>State Name</b>
- <select select_id='state_name_list' onclick='st_name=this.value'>
- <option value='mute'>Mute</option>
- <option value='active'>Active</option>
- <option selected value=''>Select...</option>
- </select>
-
- <b>State Value</b>
- <select select_id='state_value_list' onclick='st_val=this.value'>
- <option value='on'>On</option>
- <option value='off'>Off</option>
- <option selected value=''>Select...</option>
- </select>
- <b>Volume Value</b>
- <select select_id='value_list' onclick='val=this.value'>
- <option value='0'>0</option>
- <option value='20'>20</option>
- <option value='40'>40</option>
- <option value='60'>60</option>
- <option value='80'>80</option>
- <option value='100'>100</option>
- <option selected value=''>Select...</option>
- </select>
+ <option value='eq_treble'>EQ Treble</option>
+ </select><br>
+ <b><label for="valpropsel">Volume Value</label></b>
+ <input id="volvalsel" type="number" value="0" min=0 max=100 step=1 maxlength=4 onchange='vol_val=this.value'><br>
+ <b><label for="valpropsel">Property Value</label></b>
+ <input id="propvalsel" type="number" value="0" min=0 max=100 step=1 maxlength=4 onchange='prop_val=eval(parseInt(this.value))'><br>
<br>
<ol>
- <li><button onclick="callbinder('audiohl','get_sources', {audio_role:ar})">get_sources(audio_role)</button></li>
- <li><button onclick="callbinder('audiohl','get_sinks', {audio_role:ar})">get_sinks(audio_role)</button></li>
- <li><button onclick="callbinder('audiohl','stream_open', {audio_role:ar,endpoint_type:ep_type})">stream_open(audio_role,endpoint_type)</button></li>
- <li><button onclick="callbinder('audiohl','stream_open', {audio_role:ar,endpoint_type:ep_type,endpoint_id:ep_id})">stream_open(audio_role,enpoint_type,endpoint_id)</button></li>
- <li><button onclick="callbinder('audiohl','stream_close', {stream_id:s_id})">stream_close(stream_id)</button></li>
- <li><button onclick="callbinder('audiohl','set_volume', {endpoint_type:ep_type,endpoint_id:ep_id,volume:val})">set_volume(endpoint_type,endpoint_id,value)</button></li>
- <li><button onclick="callbinder('audiohl','get_volume', {endpoint_type:ep_type,endpoint_id:ep_id})">get_volume(endpoint_type,endpoint_id)</button></li>
- <li><button onclick="callbinder('audiohl','set_property', {endpoint_type:ep_type,endpoint_id:ep_id,property_name:p_name,value:val})">set_property(endpoint_type,endpoint_id,property,value)</button></li>
- <li><button onclick="callbinder('audiohl','get_property', {endpoint_type:ep_type,endpoint_id:ep_id,property_name:'balance'})">get_property(endpoint_type,endpoint_id,'balance')</button></li>
- <li><button onclick="callbinder('audiohl','set_state', {endpoint_type:ep_type,endpoint_id:ep_id,state_name:st_name,state_value:st_val})">set_state(endpoint_type,endpoint_id,stateName,stateVal)</button></li>
- <li><button onclick="callbinder('audiohl','get_state', {endpoint_type:ep_type,endpoint_id:ep_id,state_name:st_name})">get_state(endpoint_type,endpoint_id,stateName)</button></li>
- <li><button onclick="callbinder('audiohl','post_sound_event', {event_name:'PlaySound',audio_role:'notification',media_name:'HomeButton.wav'})">post_sound_event('PlaySound','HomeButton.wav')</button></li>
- <li><button onclick="callbinder('audiohl','subscribe', {events:['SinkDeviceChanges','StreamStatusChanges']})">subscribe(['SinkDeviceChanges','StreamStatusChanges'])</button>
- <li><button onclick="callbinder('audiohl','unsubscribe', {events:['SinkDeviceChanges','StreamStatusChanges']})">unsubscribe(['SinkDeviceChanges','StreamStatusChanges'])</button>
- </li>
-
- <br>
+ <li><button onclick="callbinder('audiohl','get_sources', {audio_role:ar})">get_sources(audio_role)</button></li>
+ <li><button onclick="callbinder('audiohl','get_sinks', {audio_role:ar})">get_sinks(audio_role)</button></li>
+ <li><button onclick="callbinder('audiohl','stream_open', {audio_role:ar,endpoint_type:ep_type})">stream_open(audio_role,endpoint_type)</button></li>
+ <li><button onclick="callbinder('audiohl','stream_open', {audio_role:ar,endpoint_type:ep_type,endpoint_id:ep_id})">stream_open(audio_role,enpoint_type,endpoint_id)</button></li>
+ <li><button onclick="callbinder('audiohl','stream_close', {stream_id:s_id})">stream_close(stream_id)</button></li>
+ <li><button onclick="callbinder('audiohl','get_stream_info', {stream_id:s_id})">get_stream_info(stream_id)</button></li>
+ <li><button onclick="callbinder('audiohl','set_stream_state', {stream_id:s_id,state:st_state})">set_stream_state(stream_id,stream_state)</button></li>
+ <li><button onclick="callbinder('audiohl','set_stream_mute', {stream_id:s_id,mute:st_mute})">set_stream_mute(stream_id,mute)</button></li>
+ <li><button onclick="callbinder('audiohl','set_volume', {endpoint_type:ep_type,endpoint_id:ep_id,volume:vol_val})">set_volume(endpoint_type,endpoint_id,value)</button></li>
+ <li><button onclick="callbinder('audiohl','get_volume', {endpoint_type:ep_type,endpoint_id:ep_id})">get_volume(endpoint_type,endpoint_id)</button></li>
+ <li><button onclick="callbinder('audiohl','set_property', {endpoint_type:ep_type,endpoint_id:ep_id,property_name:p_name,value:prop_val})">set_property(endpoint_type,endpoint_id,property,value)</button></li>
+ <li><button onclick="callbinder('audiohl','get_property', {endpoint_type:ep_type,endpoint_id:ep_id,property_name:p_name})">get_property(endpoint_type,endpoint_id,property)</button></li>
+ <li><button onclick="callbinder('audiohl','get_endpoint_info', {endpoint_type:ep_type,endpoint_id:ep_id})">get_endpoint_info(endpoint_type,endpoint_id)</button></li>
+ <li><button onclick="callbinder('audiohl','get_list_actions', {audio_role:ar})">get_list_actions(audio_role)</button></li>
+ <li><button onclick="callbinder('audiohl','post_action', {action_name:'emergency_brake',audio_role:ar,media_name:'Warning.wav'})">post_action(emergency_brake,audio_role,'Warning.wav')</button></li>
+ <li><button onclick="callbinder('audiohl','subscribe', {events:['ahl_endpoint_property_event','ahl_endpoint_volume_event','ahl_post_action']})">subscribe(['ahl_endpoint_property_event','ahl_endpoint_volume_event','ahl_post_action'])</button>
+ <li><button onclick="callbinder('audiohl','unsubscribe', {events:['ahl_endpoint_property_event','ahl_endpoint_volume_event','ahl_post_action']})">unsubscribe(['ahl_endpoint_property_event','ahl_endpoint_volume_event','ahl_post_action'])</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>
+ <ol>
+ <li>Question
+ <pre id="question"></pre>
+ <li>Response
+ <pre id="output"></pre>
+ <li>Events:
+ <pre id="outevt"></pre>
+ </ol>
+ </div> \ No newline at end of file
diff --git a/htdocs/index.html b/htdocs/index.html
index 3c43f9b..532cfce 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -1,11 +1,10 @@
<html>
<head>
- <title>AGL-AudioBindins tests</title>
+ <title>AGL Audio Agent</title>
<body>
- <h1>audio-bindings test</h1>
+ <h1>AAA binding tests</h1>
<ol>
<li><a href="alsa-core.html">AlsaCore Low Level Binding</a>
<li><a href="alsa-hal.html" >AlsaHAL Hardware Abstraction Layer</a>
- <li><a href="audio-control.html">AudioControl Control/Policy API</a>
<li><a href="audiohl.html">High Level Audio API</a>
- <li><a href="audiohl-demo.html">High Level Audio API Demo</a>
+ <li><a href="audiobackend.html">Audio Backend Test</a>