| OLD | NEW |
| (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> |
| OLD | NEW |