forked from mozilla-b2g/gaia
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+869 KB
test_apps/uitest/style/ringtones/AC_prgrssv__Retro_Alarm_Clock_v02_SOFT.ogg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Audio Tag test</title> | ||
<style> | ||
button { | ||
font-size: 40px; | ||
} | ||
</style> | ||
<script> | ||
var play = function _play(src) { | ||
var ringtonePlayer = new Audio(); | ||
ringtonePlayer.loop = true; | ||
var selectedSound = '../style/ringtones/' + src; | ||
ringtonePlayer.src = selectedSound; | ||
ringtonePlayer.play(); | ||
window.setTimeout(function _pauseRingtone() { | ||
ringtonePlayer.pause(); | ||
}, 20000); | ||
} | ||
|
||
</script> | ||
</head> | ||
<body> | ||
<h1>Audio Tag Test</h1> | ||
<h2>classic.ogg</h2> | ||
<button onclick="play('classic.ogg')">Play</button></p> | ||
<h2>AC_prgrssv__Retro_Alarm_Clock_v02_SOFT.ogg</h2> | ||
<button onclick="play('AC_prgrssv__Retro_Alarm_Clock_v02_SOFT.ogg')">Play</button></p> | ||
<h2>AC_progressive_dapple10.ogg</h2> | ||
<button onclick="play('AC_progressive_dapple10.ogg')">Play</button></p> | ||
<h2>AC_progressive_shimmer07.ogg</h2> | ||
<button onclick="play('AC_progressive_shimmer07.ogg')">Play</button></p> | ||
<h2>ALARM_progressive_dapple.mp3</h2> | ||
<button onclick="play('ALARM_progressive_dapple.mp3')">Play</button></p> | ||
<h2>ALARM_progressive2_dapple.mp3</h2> | ||
<button onclick="play('ALARM_progressive2_dapple.mp3')">Play</button></p> | ||
</body> | ||
</html> |