270 likes | 402 Views
Part Six. Chapter 23 How Web Browsers Do Multimedia Chapter 24 Audio Recording and Embedding. Chapter 23. How Web Browsers Do Multimedia. Chapter 23 Objectives. Understand how to use plug-ins and add-ins Find hot multimedia sites Define Java applets
E N D
Part Six Chapter 23 How Web Browsers Do Multimedia Chapter 24 Audio Recording and Embedding
Chapter 23 How Web Browsers Do Multimedia
Chapter 23 Objectives • Understand how to use plug-ins and add-ins • Find hot multimedia sites • Define Java applets • Define common gateway interface • Understand how active server page (ASP) works in .NET environment • Study client-side image maps
Multimedia Browsing • Multimedia browsing brings Web pages to life with sound, video, and animations • Your Web browser must be configured to the multimedia resource on the Web • There are a lot of different ways to do multimedia
Multimedia Browsing • Browsers handle diverse file types • Browsers have built-in support for native types of multimedia • Multimedia companies make plug-ins and add-ins that install in browsers to play their brand of software • Some browsers allow helper apps to handle other kinds of multimedia files
Built-in Browser Support • The first browsers had no built-in support for multimedia • Today’s browser vendors obtain licenses to include popular plug-ins in their standard installation files
Audio Controls • Popular browsers for audio files are Windows Media Player and Apple QuickTime Figure 23-1 Windows Media audio controls. Figure 23-2 QuickTime audio controls.
Video Controls Figure 23-3 Microsoft’s Windows media controller Figure 23-4 Apple’s QuickTime movie controller
Helper Apps • An app is a software application that can make your computer do something • A helper app handles something that is not built-in • Filename associations specify what applications will play the media files on both Windows and Macintosh computers • Table 23-1shows filename folder options
Plug-ins and Add-ins • Plug-ins and add-ins are software modules that add functionality • While Microsoft uses the term add-ins, Mozilla and most other people use the term plug-ins • An advantage of plug-ins is that they play multimedia directly in the browser’s window, while helper apps use a separate window
Flash • Flash is a popular multimedia plug-in • Download it at www.macromedia.com • The Flash player is installed on 97% of the Internet’s end-user computers • Besides animating slides, movies, and soundtracks, Flash lets users import PDF documents, design forms, and use CSS
Security Risks • When you download executable code, viruses are possible • Download only from reputable vendors • Malicious programmers called crackers can use back doors and loopholes • Vendors plug loopholes with fixes called patches
Java • Java is an object-oriented programming language invented by Sun Microsystems • Java runs under Windows, Macintosh, Unix, and Linux • Machine independence has made Java a popular language
Java Applets • Java is used for little applications called applets, which are useful on the Internet • Applets can bring Web pages to life • E.g., to rotate three-dimensional objects • Develop games such as Hangman, Tic-Tac-Toe, or more complex simulations
JavaScript • Developing Java applets is time consuming and requires programming • JavaScript is a popular, client-side language to facilitate making dynamic Web pages • Nearly all browsers support JavaScript
JavaScript Figure 23-7 A rollover effect created with JavaScript at the Library of Congress. To try this effect, go to www.loc.gov and move your mouse over the menu choices.
ActiveX • Microsoft developed ActiveX as a way to create and distribute information • ActiveX is widely accepted by Windows developers • ActiveX uses controls, scripts, and documents • More than a thousand ActiveX controls are available, including Internet Explorer
Dynamic HTML • Dynamic HTML refers to animated pages created by combining HTML with scripts that manipulate Web pages • How objects are defined and manipulated is called the document object model (DOM) • JavaScript and VBScript manipulate Web pages from DOM-defined objects
Server-Side Tools • Viewing Internet Web pages involves a client and a server • The client is the browser that requests, downloads, and displays the Web page • The server is the computer that serves the Web page to the client • The common gateway interface (CGI) facilitates transactions between a client and a server
Common Gateway Interface (CGI) • The CGI protocol defines how forms data, cookies, and other information in a request are processed • The programs that respond to CGI requests are called CGI scripts • CGI scripts are language neutral • For example, Pearl, Python, C#, and Java are CGI scripting languages
Perl • Perl is a machine-independent, scripting language • Perl scripts can be run under Unix, DOS, O/S2, Macintosh, Amiga, and Windows • There is a large public-domain library of Perl scripts
Active Server Pages (ASP) • Active Server Pages (ASP) is the Microsoft tool for server-side scripting • ASP HTML files consist of tags and content • The start tag is <% and stop tag is %> • JScript or VBscript, found between the tags, is executed by the server • ASP keeps code private
ASP.NET • The latest version of ASP is ASP.NET (pronounced dot-NET) • ASP.NET uses scripts and languages • C, C++, C# (pronounced C-sharp), and J# (Microsoft’s Java) • Behind-the-scene files full of code are called code-behind files
The .NET Framework • The .NET Framework is a Microsoft O/S product that adds thousands of functions for use in creating Web applications • .NET gives your computer a just-in-time compiler, called only when needed • A suite of tools called Visual Studio .NET is an integrated development environment for creating applications and services
Client-Side Trends • Web authors can handle client-side tasks that used to require CGI calls • For example, an image map is an invisible layer of hotspots placed over an image onscreen • To learn how to create an image map, consider the example in Figure 23-9 • To create an image map by drawing in your browser, go to Table 23-2