| Index: ppapi/examples/audio_input/audio_input.html
|
| diff --git a/ppapi/examples/audio_input/audio_input.html b/ppapi/examples/audio_input/audio_input.html
|
| index a5256fa514870a7d4826e4c0f64349ab283724e6..9ce18ca11e9912acfd1b649a1774fcacec20c5fe 100644
|
| --- a/ppapi/examples/audio_input/audio_input.html
|
| +++ b/ppapi/examples/audio_input/audio_input.html
|
| @@ -54,18 +54,20 @@
|
| plugin.postMessage(command);
|
|
|
| var available_devices = document.getElementById('available_devices');
|
| - available_devices.parentNode.removeChild(available_devices);
|
| -
|
| - var control_panel = document.getElementById('control_panel');
|
| - var link = document.createElement('a');
|
| - link.href = 'javascript:Stop();';
|
| - link.innerText = 'Stop';
|
| - control_panel.appendChild(link);
|
| + available_devices.parentNode.removeChild(available_devices);
|
| +
|
| + var control_panel = document.getElementById('control_panel');
|
| + control_panel.style.display = 'block';
|
| }
|
|
|
| function Stop() {
|
| var plugin = document.getElementById('plugin');
|
| - plugin.postMessage('Stop');
|
| + plugin.postMessage('Stop');
|
| + }
|
| +
|
| + function Start() {
|
| + var plugin = document.getElementById('plugin');
|
| + plugin.postMessage('Start');
|
| }
|
|
|
| function Initialize() {
|
| @@ -93,7 +95,10 @@
|
| Default - use interface version 0.2 and NULL device ref</a></li>
|
| </ul>
|
| </div>
|
| - <div id="control_panel"></div>
|
| + <div id="control_panel" style="display:none">
|
| + <a href="javascript:Stop();">Stop</a>
|
| + <a href="javascript:Start();">Start</a>
|
| + </div>
|
| <div id="status"></div>
|
| </body>
|
| </html>
|
|
|