summaryrefslogtreecommitdiffstats
path: root/htdocs/audiohl-demo.html
diff options
context:
space:
mode:
authorTai Vuong <tvuong@audiokinetic.com>2017-09-12 16:33:39 -0400
committerTai Vuong <tvuong@audiokinetic.com>2017-09-12 16:33:39 -0400
commitd69dc9732886074e9f400961b500e70d5c8305d7 (patch)
treeec5d4bb353814d442e3e4d84430a5343fee7b0c8 /htdocs/audiohl-demo.html
parent9098015429bcc87a7b624ade16732848a9d90f67 (diff)
Pre-AudioWorkshop Demo
Diffstat (limited to 'htdocs/audiohl-demo.html')
-rw-r--r--htdocs/audiohl-demo.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/htdocs/audiohl-demo.html b/htdocs/audiohl-demo.html
new file mode 100644
index 0000000..e222707
--- /dev/null
+++ b/htdocs/audiohl-demo.html
@@ -0,0 +1,47 @@
+<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>