Skip to content

Commit 355832e

Browse files
committed
flash, video & audio
1 parent d829b24 commit 355832e

17 files changed

+121
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

8/.DS_Store

2 KB
Binary file not shown.

8/images/.DS_Store

6 KB
Binary file not shown.

9/.DS_Store

8 KB
Binary file not shown.

9/adding-a-flash-movie.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Adding a Flash Movie</title>
5+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
6+
<script type="text/javascript">
7+
swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.00");
8+
</script>
9+
</head>
10+
<body>
11+
<div id="bird">
12+
<p>An animation of a bird taking s ahower</p>
13+
</div>
14+
</body>
15+
</html>

9/adding-a-flash-mp3-player.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Adding a Flash MP3 Player</title>
5+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
6+
<script type="text/javascript">
7+
var flashvars = {};
8+
var params = {mp3: "audio/test-audio.mp3"};
9+
swfobject.embedSWF(
10+
"flash/player_mp3_1.0.0.swf",
11+
"music-player", "200", "20" , "8.0.0",
12+
flashvars, params);
13+
</script>
14+
</head>
15+
<body>
16+
<div id="music-player">
17+
<p>You cannot hear this track because this browser does not support our Flash music player</p>
18+
</div>
19+
</body>
20+
</html>

9/adding-a-flash-video.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Adding a Flash Video</title>
5+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
6+
<script type="text/javascript">
7+
var flashvars = {};
8+
var params = {movie:"../video/puppy.flv"};
9+
swfobject.embedSWF("flash/splayer.swf", "snow", "400", "320", "8.0.0", flashvars, params);
10+
</script>
11+
</head>
12+
<body>
13+
<div id="snow">
14+
<p>A video of a puppy playing in the snow</p>
15+
</div>
16+
</body>
17+
</html>

9/adding-html5-audio.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Adding HTML5 Audio</title>
5+
</head>
6+
<body>
7+
<audio src="audio/test-audio.ogg" controls autoplay>
8+
<p>This browser does not support our audio format.</p>
9+
</audio>
10+
</body>
11+
</html>

9/adding-html5-video.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Adding HTML5 Video</title>
5+
</head>
6+
<body>
7+
<video src="video/puppy.mp4" poster="images/test.jpg" width="400" height="300" preload controls loop>
8+
<p>A video of a puppy playing in the snow</p>
9+
</video>
10+
</body>
11+
</html>

9/audio/test-audio.mp3

133 KB
Binary file not shown.

9/audio/test-audio.ogg

227 KB
Binary file not shown.

9/example.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Flash, Video and Audio</title>
5+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
6+
<script type="text/javascript">
7+
var flashvars = {};
8+
var params = {movie: "../video/puppy.flv"};
9+
swfobject.embedSWF("flash/osplayer.swf", "snow", "400", "320", "8.0.0", flashvars, params);
10+
</script>
11+
</head>
12+
<body>
13+
<video poster="images/test.jpg" width="400" height="320" controls="controls">
14+
<source src="video/puppy.mp4" type='video/mp4;codecs="avc1.42E01E, mp4a.40.2"' />
15+
<source src="video/puppy.webm" type='video/webm;codecs="vp8, vorbis"' />
16+
<div id="snow">
17+
<p>You cannot see this video of a puppy playing in the snow because this browser does not support our video formats.</p>
18+
</div>
19+
</video>
20+
</body>
21+
</html>

9/images/test.jpg

36.6 KB
Loading

9/multiple-audio-sources.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Multiple Audio Sources</title>
5+
</head>
6+
<body>
7+
<audio controls autoplay>
8+
<source src="audio/test-audio.ogg" />
9+
<source src="audio/test-audio.mp3" />
10+
<p>This browser does not support our audio format.</p>
11+
</audio>
12+
</body>
13+
</html>

9/multiple-video-sources.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Multiple Video Sources</title>
5+
</head>
6+
<body>
7+
<video poster="images/test.jpg" width="400" height="320" preload controls loop>
8+
<source src="video/puppy.mp4" type='video/mp4;codecs="avc1.42E01E, mp4a.40.2"' />
9+
<source src="video/puppy.webm" type='video/webm;codecs="vp8, vorbis"' />
10+
<p>A video of a puppy playing in the snow</p>
11+
</video>
12+
</body>
13+
</html>

9/video/puppy.mp4

3.52 MB
Binary file not shown.

9/video/puppy.webm

1.99 MB
Binary file not shown.

0 commit comments

Comments
 (0)