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

Side by Side Diff: content/test/data/android/multiple_audio_test.html

Issue 1131793004: Migrate AudioFocusChangeListener to browser and always send GAIN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: webview suggestions from boliu Created 5 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!-- NOTE: The ids in this file must be kept in sync with AudioFocusManagerTest. java -->
2
3 <html>
4 <head>
5 <script>
6 function playFirstAudio() {
7 document.getElementById('firstAudio').play();
8 }
9
10 function playSecondAudio() {
11 document.getElementById('secondAudio').play();
12 }
13
14 function pauseFirstAudio() {
15 document.getElementById('firstAudio').pause();
16 }
17
18 function pauseSecondAudio() {
19 document.getElementById('secondAudio').pause();
20 }
21
22 function reduceFirstVolume() {
23 document.getElementById('firstAudio').volume = 0.5;
24 }
25
26 function resetFirstVolume() {
27 document.getElementById('firstAudio').volume = 1.0;
28 }
29 </script>
30 </head>
31 <body>
32
33 <button id="playFirstButton" style='padding:10px 10px;' onclick="playFirstAudio( ); return false">Play first</button>
34 <button id="playSecondButton" style='padding:10px 10px;' onclick="playSecondAudi o(); return false">Play second</button>
35 <button id="pauseFirstButton" style='padding:10px 10px;' onclick="pauseFirstAudi o(); return false">Pause first</button>
36 <button id="pauseSecondButton" style='padding:10px 10px;' onclick="pauseSecondAu dio(); return false">Pause second</button>
37 <button id="reduceFirstVolumeButton" style='padding:10px 10px;' onclick="reduceF irstVolume(); return false">Reduce First Volume</button>
38 <button id="resetFirstVolumeButton" style='padding:10px 10px;' onclick="resetFir stVolume(); return false">Reset First Volume</button>
39
40 <audio id='firstAudio' controls>
41 <source src="audio.ogg" type="audio/ogg">
42 </audio>
43
44 <audio id='secondAudio' controls>
45 <source src="audio.ogg" type="audio/ogg">
46 </audio>
47
48 </body>
49 </html>
OLDNEW
« no previous file with comments | « content/test/data/android/audio.ogg ('k') | media/base/android/java/src/org/chromium/media/MediaPlayerListener.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698