Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: ppapi/examples/audio_input/audio_input.html

Issue 9705056: PepperPlatformAudioInputImpl: support audio input device selection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync&resolve again Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/examples/audio_input/audio_input.cc ('k') | ppapi/shared_impl/ppb_audio_input_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « ppapi/examples/audio_input/audio_input.cc ('k') | ppapi/shared_impl/ppb_audio_input_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698