-
Notifications
You must be signed in to change notification settings - Fork 4
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
17 changed files
with
47 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Exercise 8: Playing Audio | ||
|
||
In this exercise, you will include an audio player. | ||
Use the skeleton in `exercises/08_basic_audio/exercise.html`. | ||
|
||
Playing audio on a web page always used to be a bit of a hassle because HTML | ||
did not provide this functionality and you had to include things like Flash | ||
audio players. Fortunately, HTML5 now defines an `audio` element which can be | ||
used to play audio files. However, as this is a fairly new addition, it has not | ||
been completely standardized and therefore some browsers can only play some types | ||
of audio. You should therefore always prepare your stimuli as mp3 and as ogg | ||
encoded audio files. | ||
|
||
|
||
## Steps | ||
|
||
1. Add an [audio player](https://www.w3schools.com/html/html5_audio.asp) | ||
to play the `boogalooo` audio file in the audio directory. |
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,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Playing audio</title> | ||
</head> | ||
<body> | ||
<h1>Audio</h1> | ||
|
||
<p> Click play to listen to the audio.</p> | ||
</body> | ||
</html> |
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 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,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Playing audio</title> | ||
</head> | ||
<body> | ||
<h1>Audio</h1> | ||
|
||
<p> Click play to listen to the audio.</p> | ||
<audio controls> | ||
<source src="audio/boogalooo.ogg" type="audio/ogg"> | ||
<source src="audio/boogalooo.mp3" type="audio/mpeg"> | ||
Your browser does not support the audio element. | ||
</audio> | ||
</body> | ||
</html> |
Empty file.