Académique Documents
Professionnel Documents
Culture Documents
Creating audio and video clips to incorporate into Web page often
requires powerful software.
We focus on using existing audio and video clips.
274
Internet Systems
You should also use the ALT property, whose value is text
displayed if the browser can’t handle the clip.
Key properties:
SRC the URL of the media file
LOOP true to loop indefinitely; else false for just once
HIDDEN true to hide the GUI; default is false
275
Internet Systems
276
Internet Systems
Microsoft Agent
Microsoft Agent is a technology for interactive animated
characters in a Windows application or Web page.
277
Internet Systems
The OBJECT elements for all three of these ActiveX controls are
in the page header.
278
Internet Systems
Example:
parrot.Get( “state”, “Showing” );
parrot.Get( “state”, “Speaking” );
parrot.Get( “animation”, “Greet” );
// Display the Showing behavior:
parrot.Show();
parrot.Play( “Greet” );
// Display the Speaking behavior:
parrot.Speak( “Hello!” );
parrot.Play( “GreetReturn” );
The GreetReturn behavior is downloaded with the Greet
behavior.
The Speak() method makes use of the TTS object.
There is also a MoveTo( x, y ) method for a character.
279
Internet Systems
Some of the tags inserted into the text string that’s spoken:
\Pau = n\ Pause for n millseconds.
\Pit = n\ Set the pitch to n hertz, 50 ≤ n ≤400
Example:
parrot.Commands.Add( “order”,
“Order a widget”,
“Order [a widget]”, true, true);
280
Internet Systems
281
Internet Systems
Example:
Suppose we have
parrot.Commands.Caption =
“Ordering information”;
When the Scroll Lock key is pressed, the area below Peedy contains
-- Peedy is preparing to listen --
Please wait to speak.
This changes to
-- Peedy is listening --
for “Ordering information” commands
After the user says (for example) “Order a widget”, the following
(hopefully) appears:
-- Peedy is not listening --
Heard “Ordering information”
282
Internet Systems
283
Internet Systems
The object rendering has controls that allow you (using the mouse)
to change your perspective and to walk around a scene.
284