+ All Categories
Home > Documents > Chapter 4, Sight and sounds of the Internet

Chapter 4, Sight and sounds of the Internet

Date post: 13-Jan-2015
Category:
Upload: ronny72
View: 1,510 times
Download: 1 times
Share this document with a friend
Description:
 
Popular Tags:
89
Sights and Sounds of the Internet Chapter 4
Transcript
Page 1: Chapter 4, Sight and sounds of the Internet

Sights and Sounds of the Internet

Chapter 4

Page 2: Chapter 4, Sight and sounds of the Internet

2

You Will Learn…

How to enhance a web site with multimedia

How MIME facilitates the use of non-text files

How to download and use helper applications and plug-ins

How to add sound files to a web site

continued…

Page 3: Chapter 4, Sight and sounds of the Internet

3

You Will Learn…

About different graphics file types and how to use them on web sites

How streaming multimedia technology works, and how to add movies, videos, and streaming sound to web pages

How video conferencing works on the Internet

Page 4: Chapter 4, Sight and sounds of the Internet

4

Enhancing Web Sites with Multimedia Non-streaming data

Multimedia data that is first downloaded from a web set and then played

Streaming data Plays as it is being downloaded Examples: videoconferencing and

listening to the radio from a web site

Page 5: Chapter 4, Sight and sounds of the Internet

5

Streaming Data

Page 6: Chapter 4, Sight and sounds of the Internet

6

MIME (Multipurpose Internet Mail Extensions) A protocol used to transport non-

text files attached to e-mail messages and web pages across the Internet

Identifies a file as belonging to a category and a subcategory such as Image/gif

Page 7: Chapter 4, Sight and sounds of the Internet

7

Early Attempts to Work with Non-text Files When the web and e-mail first were

developed, no provision was made to send any data that was not pure ASCII text (binary files)

Early solutions Uuencode and uudecode BinHex

Current MIME method of transmitting non-ASCII files over the Internet

RFC 1521

Page 8: Chapter 4, Sight and sounds of the Internet

8

How MIME Works

1. Declare MIME type in header information

2. Encode the file3. Send the files over the Internet4. Client receives the data5. Interpret the MIME file

Page 9: Chapter 4, Sight and sounds of the Internet

9

Page 10: Chapter 4, Sight and sounds of the Internet

10

Viewing the Source Data

Page 11: Chapter 4, Sight and sounds of the Internet

11

MIME File Types

Text Multipart Application Message

Image Audio Video Model

Page 12: Chapter 4, Sight and sounds of the Internet

12

Page 13: Chapter 4, Sight and sounds of the Internet

13

Helper Applications and Plug-ins Helper application (external viewer)

Used by e-mail applications to display files Opens the file in a separate window and does

not involve the e-mail software Can work independently of a browser

Plug-in (browser extension) Enhances the browser, enabling the browser to

perform the task Requires the browser in order to work

Page 14: Chapter 4, Sight and sounds of the Internet

14

Helper Applications and Plug-ins

Page 15: Chapter 4, Sight and sounds of the Internet

15

Helper Applications and Plug-ins

Page 16: Chapter 4, Sight and sounds of the Internet

16

Helper Applications and Plug-ins

Page 17: Chapter 4, Sight and sounds of the Internet

17

Helper Applications and Plug-ins

Page 18: Chapter 4, Sight and sounds of the Internet

18

Downloading and Installing Plug-ins

Page 19: Chapter 4, Sight and sounds of the Internet

19

Downloading and Installing Plug-ins

Page 20: Chapter 4, Sight and sounds of the Internet

20

Non-streaming Sound Files

Browsers generally don’t know how to play sound files without the help of a plug-in or browser extension Internet Explorer uses Windows Media

Player Netscape Navigator uses RealPlayer

and Beatnik Player

Page 21: Chapter 4, Sight and sounds of the Internet

21

Storing Sound in Files

MIDI (musical instrument digital interface)

WAV (wave) WMA (Windows Media Audio AU (UNIX Audio) AIFF MPEG (Moving Pictures Experts

Group)

Page 22: Chapter 4, Sight and sounds of the Internet

22

Storing Sound in Files

MPEG technology uses lossy compression (compresses data by dropping unnecessary or redundant data)

Sounds are converted to digital data using a microphone and a sound card

A sound card receives analog flow of sound from the microphone and digitizes it (converts it to bits: 1s and 0s)

Page 23: Chapter 4, Sight and sounds of the Internet

23

A Sound Card

Page 24: Chapter 4, Sight and sounds of the Internet

24

Storing Sound in Files

Sampling Process of approximating an infinite

flow of sound CODEC (compressor/decompressor)

Compressing and later decompressing sound, animation, and video files

Also stands for coder/decoder when referring to digital-to-analog conversion

Page 25: Chapter 4, Sight and sounds of the Internet

25

Recording Sound

Page 26: Chapter 4, Sight and sounds of the Internet

26

Adding Sound to a Web Site Use any of these tags:

<BGSOUND> <EMBED> <OBJECT> <HREF>

Page 27: Chapter 4, Sight and sounds of the Internet

27

The <BGSOUND> Tag

Page 28: Chapter 4, Sight and sounds of the Internet

28

The <EMBED> Tag

Page 29: Chapter 4, Sight and sounds of the Internet

29

Sound Used by Different Browsers Use <OBJECT> tag to embed sound

in a web page to be interpreted by both Netscape and Internet Explorer

Example:<OBJECT DATA = “chimes.wav”> </OBJECT>

Page 30: Chapter 4, Sight and sounds of the Internet

30

Sound Files as Hyperlinks

Refer to the sound file name when using <A HREF> tag

Page 31: Chapter 4, Sight and sounds of the Internet

31

Sound Files as Hyperlinks

Page 32: Chapter 4, Sight and sounds of the Internet

32

Sound Files as Hyperlinks

Page 33: Chapter 4, Sight and sounds of the Internet

33

Graphics on Web Pages

Image map A graphic on a web page that contains

multiple hyperlinks Also called clickable map

Page 34: Chapter 4, Sight and sounds of the Internet

34

Graphics on Web Pages

Page 35: Chapter 4, Sight and sounds of the Internet

35

Graphic File Types

Bit-mapped image (raster image) Composed of many small colored or gray dots

that look like an image when viewed as a whole Easy to import; easy to display Doesn’t enlarge as well as a vector image

Vector image (object image) Created by mathematical equations that

communicate how to draw lines and shapes to create the image to the software

Page 36: Chapter 4, Sight and sounds of the Internet

36

Bitmapped Image

Page 37: Chapter 4, Sight and sounds of the Internet

37

Bitmapped Image

Page 38: Chapter 4, Sight and sounds of the Internet

38

Graphic File Types

GIF (Graphical Interchange Format) JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) BMP (bit-mapped) TIFF (Tagged Image File Format) PDF (Portable Document Format) RTF (Rich Text Format) PostScript and EPS (Encapsulated

PostScript)

Page 39: Chapter 4, Sight and sounds of the Internet

39

GIF Files

Most popular graphics files on the web

Bit-mapped files; easily read Support animation, transparent

background, and interlacing Use 256 colors and dithering

Page 40: Chapter 4, Sight and sounds of the Internet

40

Transparent Background

Page 41: Chapter 4, Sight and sounds of the Internet

41

JPEG Files

Most often used to store photographs More compressed than GIF files; use

lossy compression method Do not support transparent

backgrounds or animation, but support interlacing (progressive JPEG)

Page 42: Chapter 4, Sight and sounds of the Internet

42

PNG Files

Use lossless compression, interlacing, and transparent background color

Do not support animation

Page 43: Chapter 4, Sight and sounds of the Internet

43

BMP Files

Store images as many dots of varying color Do not support high resolution, animation,

interlacing, or compression Not used much on the Web

Not compressed Not supported by most browsers

Popular on PCs Easy to create Most computers have software to support them

Page 44: Chapter 4, Sight and sounds of the Internet

44

TIFF Files

Bit-mapped images that can use either lossless or lossy compression and offer strong support for color

Popular for desktop publishing applications Often used for photographs, graphics, and

screen captures Not commonly used on web sites

Can be large Not supported by most browsers without a plug-

in

Page 45: Chapter 4, Sight and sounds of the Internet

45

PDF Files

Proprietary file format by Adobe Systems

Provide images of the formatted document that allow anyone to view and print, but not edit the file

Page 46: Chapter 4, Sight and sounds of the Internet

46

RTF Files

Convert a word processing document to ASCII code so that another word processor can read and edit the file

Lose original formatting but retain ability to be edited

Page 47: Chapter 4, Sight and sounds of the Internet

47

PostScript and EPS Files

PostScript A page description language developed by

Adobe Systems Used to communicate printing directions to a

PostScript printer EPS

A file format developed by Adobe Includes directions for printing a document to a

PostScript printer Includes a print preview of the document

Page 48: Chapter 4, Sight and sounds of the Internet

48

Web Page Backgrounds

Use the BACKGROUND attribute of the <BODY> tag

Example:<body background=“TEXTURE.GIF”>

Can be GIF or JPEG files

Page 49: Chapter 4, Sight and sounds of the Internet

49

Animated Graphics

Add the LOOP attribute to the <IMG SRC> tag

Example:<IMG SRC=“animated.gif” LOOP=INFINITE>

Page 50: Chapter 4, Sight and sounds of the Internet

50

Animated Graphics

Page 51: Chapter 4, Sight and sounds of the Internet

51

Animated Graphics

Creating images Modify a graphic so that you have

images for each frame of the animation Creating animation

Join the images together to create an animation sequence

Page 52: Chapter 4, Sight and sounds of the Internet

52

Creating Images

Page 53: Chapter 4, Sight and sounds of the Internet

53

Creating Images

Page 54: Chapter 4, Sight and sounds of the Internet

54

Creating Images

Page 55: Chapter 4, Sight and sounds of the Internet

55

Creating Animation

Page 56: Chapter 4, Sight and sounds of the Internet

56

Optimizing Page Download Time Keep total size of all files to be

downloaded for a single page to 50K Break large PDF files into several

shorter files Use 8-bit graphics instead of 24-bit Use compressed audio or graphics files Use GIF files for graphics and JPEG files

for photographs

continued…

Page 57: Chapter 4, Sight and sounds of the Internet

57

Optimizing Page Download Time Use solid background colors Use fewer colors Set dimensions of image as small as

practical Use graphics-crunching utilities Do not save an image in one format

and then another

Page 58: Chapter 4, Sight and sounds of the Internet

58

Streaming Multimedia

Can originate from a stored file or from live data arriving at the server

Uses the client/server architecture Is often buffered by the client plug-

in

Page 59: Chapter 4, Sight and sounds of the Internet

59

Streaming Multimedia Architecture A media client and a media server

handle the actual streaming data request and transmission

Page 60: Chapter 4, Sight and sounds of the Internet

60

Streaming Multimedia Architecture

Page 61: Chapter 4, Sight and sounds of the Internet

61

Protocols

Streaming data uses the HTTP or RTSP (Real Time Streaming Protocol) protocol to format data

These protocols use either UDP (User Datagram Protocol) or RTP (Real Time Transport Protocol) to transmit data

Page 62: Chapter 4, Sight and sounds of the Internet

62

Metafiles

Files that contain information about other files (eg, location and filename of the audio or video data)

List the protocol first, the server name next, and the filename last

Example:pnm://server.name.ext/filename2.rm

Page 63: Chapter 4, Sight and sounds of the Internet

63

How Metafiles Transmit Streaming Data1. Web page requests metafile, which

is downloaded to the client2. HTML informs browser of the type

of plug-in required3. Plug-in is loaded and creates a link

to the data on the server as identified by the metafile

Page 64: Chapter 4, Sight and sounds of the Internet

64

Page 65: Chapter 4, Sight and sounds of the Internet

65

Streaming Multimedia Plug-ins QuickTime RealPlayer by Real Networks Microsoft Windows Media Player Flash and Shockwave by

Macromedia

Page 66: Chapter 4, Sight and sounds of the Internet

66

Streaming Multimedia Plug-ins

Page 67: Chapter 4, Sight and sounds of the Internet

67

QuickTime

Provides framework for synchronizing video, sound, and text in a web-based presentation

Supports several video compression techniques

Supports non-streaming data, stored streaming data, and live streaming data

Supports many standard video, audio, and graphics formats (WAV, MIDI, Flash, and AVI)

3D version: QuickTime Virtual Reality (QTVR)

Page 68: Chapter 4, Sight and sounds of the Internet

68

RealPlayer

Uses its own proprietary audio, video, graphics, and text files

Supports several multimedia video and audio file types

Page 69: Chapter 4, Sight and sounds of the Internet

69

Windows Media Player

Free plug-in that comes with Windows

Supports several popular file types

Page 70: Chapter 4, Sight and sounds of the Internet

70

Flash and Shockwave

Flash Uses vector graphics to produce

animated graphics with sound Shockwave

Used mostly in audio and video production

Page 71: Chapter 4, Sight and sounds of the Internet

71

Flash

Page 72: Chapter 4, Sight and sounds of the Internet

72

Movies and Videos on the Web Advantage: easy access instead of high

quality Video file types

AVI (Audio Video Interleaved) MPEG QuickTime ASF (Advanced Streaming Format) Windows Media File with Audio and/or Video

(WMV)

Page 73: Chapter 4, Sight and sounds of the Internet

73

HTML Tags Used to Add Movies and Videos to Web Pages <EMBED> <OBJECT> <APPLET>

Page 74: Chapter 4, Sight and sounds of the Internet

74

Creating Video for a Web Site1. Create video using a camcorder 2. Download video to the PC3. Edit the video4. Compress video data5. Place video file on web site and build web

pages to view it using browser plug-ins6. View the video by the browser

Page 75: Chapter 4, Sight and sounds of the Internet

75

Page 76: Chapter 4, Sight and sounds of the Internet

76

Types of Video Camcorders Analog Digital

Page 77: Chapter 4, Sight and sounds of the Internet

77

Live Web Broadcasts

Page 78: Chapter 4, Sight and sounds of the Internet

78

Video Conferencing over the Internet Live data is filmed by:

Digital camcorder and continuously downloaded to a computer using a port on the computer, or

Analog camcorder that downloads data to a video capture card that can support inputting live data

Data is input into software and converted to a format that can be made available to the live web broadcast

A browser receives a live broadcast using a plug-in

Page 79: Chapter 4, Sight and sounds of the Internet

79

Sample Screen from a Video Conference

Page 80: Chapter 4, Sight and sounds of the Internet

80

Sample Screen from a Video Conference

Page 81: Chapter 4, Sight and sounds of the Internet

81

Sample Screen from a Video Conference

Page 82: Chapter 4, Sight and sounds of the Internet

82

NetMeeting

Allows you to have your own video conference calls if you have a microphone, PC camera, and speakers installed on a Windows 9x, Windows NT, or Windows 2000 system

Client software that uses a directory server

Page 83: Chapter 4, Sight and sounds of the Internet

83

Using NetMeeting

Page 84: Chapter 4, Sight and sounds of the Internet

84

Installing NetMeeting

Page 85: Chapter 4, Sight and sounds of the Internet

85

Installing NetMeeting

Page 86: Chapter 4, Sight and sounds of the Internet

86

Installing NetMeeting

Page 87: Chapter 4, Sight and sounds of the Internet

87

Starting NetMeeting

Page 88: Chapter 4, Sight and sounds of the Internet

88

A NetMeeting Session

Page 89: Chapter 4, Sight and sounds of the Internet

89

Chapter Summary

How to add audio, video, and enhanced graphics to web sites

How audio and video files are created, compressed, transported, and interpreted

Software available to work with multimedia files

Technology needed to support a client that accesses multimedia web sites


Recommended