summaryrefslogtreecommitdiffstats
path: root/conf.d/project/htdocs
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2018-06-05 00:28:17 +0200
committerfulup <fulup.arfoll@iot.bzh>2018-06-05 00:28:17 +0200
commitc4c0647af21b2a05e87f36101d86dc2d35f1f47c (patch)
tree079ec4c4d4153370ae3f2872658f13ed68398000 /conf.d/project/htdocs
parent067d28e5010cb37035caf756a39f2ca27d4589d3 (diff)
Update info command and move HTML5 to new API
Diffstat (limited to 'conf.d/project/htdocs')
-rw-r--r--conf.d/project/htdocs/index.html136
1 files changed, 10 insertions, 126 deletions
diff --git a/conf.d/project/htdocs/index.html b/conf.d/project/htdocs/index.html
index 5709eb2..59fbbac 100644
--- a/conf.d/project/htdocs/index.html
+++ b/conf.d/project/htdocs/index.html
@@ -5,125 +5,11 @@
<script type="text/javascript" src="AFB-websock.js"></script>
<script type="text/javascript" src="AudioBinding.js"></script>
<script type="text/javascript">
-
- var frontend = {
- "devices": {
- "playback": 0,
- "capture": 1
- },
- "ramps": [
- {
- "uid": "ramp-fast",
- "delay": 50,
- "up": 10,
- "down": 3
- },
- {
- "uid": "ramp-slow",
- "delay": 250,
- "up": 3,
- "down": 1
- },
- {
- "uid": "ramp-normal",
- "delay": 100,
- "up": 6,
- "down": 2
- }
- ],
- "subdevs": [
- {
- "subdev": 0,
- "numid": 51
- },
- {
- "subdev": 1,
- "numid": 57
- },
- {
- "subdev": 2,
- "numid": 63
- },
- {
- "subdev": 3,
- "numid": 69
- },
- {
- "subdev": 4,
- "numid": 75
- },
- {
- "subdev": 5,
- "numid": 81
- },
- {
- "subdev": 6,
- "numid": 87
- },
- {
- "subdev": 7,
- "numid": 93
- }
- ]
- };
- var audio_defaults = {
- "rate": 48000
- };
- var usb_yamaha = {
- uid: "YAMAHA-APU70",
- devpath: "/dev/snd/by-id/usb-YAMAHA_Corporation_YAMAHA_AP-U70_USB_Audio_00-00",
- params: snd_params,
- sink: [
- {uid: "front-right", port: 0},
- {uid: "front-left", port: 1}
- ]
- };
- var zone_front = {
- uid: "front-seats",
- type: "playback",
- mapping: [
- {target: "front-right", channel: 0},
- {target: "front-left", channel: 1}
- ]
- };
-
- var stream_music = {
- uid: "multimedia",
- zone: "front-seats",
- ramp: "ramp-slow",
- volume: 60,
- mute: false
- };
-
- var stream_navigation = {
- uid: "navigation",
- zone: "front-seats",
- ramp: "ramp-normal",
- volume: 70,
- mute: false
- };
-
- var stream_emergency = {
- uid: "emergency",
- zone: "front-seats",
- ramp: "ramp-fast",
- volume: 80,
- mute: false
- };
-
- var my_test_mixer = {
- uid: 'simple_mixer',
- backend: usb_yamaha,
- frontend: frontend,
- zones: zone_front,
- streams: [stream_music, stream_navigation, stream_emergency]
- };
-
</script>
</head>
- <body onload="init('hal_registry', 'alsacore', 'hallist')">
+ <body onload="init()">
<h1>Simple Mixer Test</h1>
<button id="connected" onclick="init()">Binder WS Fail</button>
@@ -132,20 +18,18 @@
<h2>V3 API CALL</h2>
<ol>
- <li><button onclick="callbinder('softmixer', 'simple_mixer', {list: {streams: true}});">Streams List</button></li>
- <br>
- <li><button onclick="callbinder('softmixer', 'simple_mixer/multimedia', {toggle: true});">Stream Multimedia pause/resume</button></li>
- <li><button onclick="callbinder('softmixer', 'simple_mixer/navigation', {toggle: true});">Stream Navigation pause/resume</button></li>
+ <li><button onclick="callbinder('MyMixer', 'info', {streams: true});">Streams List</button></li>
+ <li><button onclick="callbinder('MyMixer', 'info', {ramps: true});">Ramps List</button></li>
+ <li><button onclick="callbinder('MyMixer', 'info', {zones: true});">Zones List</button></li>
<br>
- <li><button onclick="callbinder('softmixer', 'simple_mixer/multimedia', {volume: '+10'});">Stream Multimedia volume=+10"</button></li>
- <li><button onclick="callbinder('softmixer', 'simple_mixer/multimedia', {volume: '-10'});">Stream Multimedia volume=-10"</button></li>
+ <li><button onclick="callbinder('MyMixer', 'multimedia', {toggle: true});">Stream Multimedia pause/resume</button></li>
+ <li><button onclick="callbinder('MyMixer', 'navigation', {toggle: true});">Stream Navigation pause/resume</button></li>
<br>
- <li><button onclick="callbinder('softmixer', 'simple_mixer/multimedia', {ramp: 30});">Stream Multimedia ramp=30"</button></li>
- <li><button onclick="callbinder('softmixer', 'simple_mixer/multimedia', {ramp: 80});">Stream Multimedia ramp=80"</button></li>
+ <li><button onclick="callbinder('MyMixer', 'multimedia', {volume: '+10'});">Stream Multimedia volume=+10"</button></li>
+ <li><button onclick="callbinder('MyMixer', 'multimedia', {volume: '-10'});">Stream Multimedia volume=-10"</button></li>
<br>
- <li><button onclick="callbinder('softmixer', 'simple_mixer', {delete: true});">Close Mixer"</button></li>
- <li><button onclick="callbinder('softmixer', 'create',{uid:'simple_mixer', backend: usb_yamaha, frontend: frontend,
- zones: [zone_front],streams: [stream_music, stream_navigation, stream_emergency]});">New Mixer"</button></li>
+ <li><button onclick="callbinder('MyMixer', 'multimedia', {ramp: {uid:'ramp-slow', volume:30}});">Stream Multimedia ramp-slow=30"</button></li>
+ <li><button onclick="callbinder('MyMixer', 'multimedia', {ramp: {uid:'ramp-fast', volume:80}});">Stream Multimedia ramp-fast=80"</button></li>
</ol>
<div id="main" style="visibility:hidden">