Chapter 13
344
RealMedia cast members
RealMedia cast members are always linked cast members; they reference an external stream via a
URL (of type HTTP, RTSP, or PNM) to a location on the Internet or a local file on your hard
disk or network file server. RealMedia cast members are always of type
#realMedia
.
Sprites created from RealMedia cast members are treated as regular sprites and can be rotated,
skewed, stretched, flipped, colorized, composited with other sprite layers with ink, and
manipulated with the new Lingo elements for RealMedia as well as standard sprite and cast
member Lingo.
All RealMedia properties and methods invoked on a RealMedia sprite invoke the corresponding
cast member’s properties and methods. This is because Director plays back RealMedia files at the
cast member level rather than the sprite level. For more information, see “RealMedia stream
playback” on page 345.
You can have as many RealMedia streams and cast members in your Director movie as you want,
as long as you play them consecutively, not concurrently. This version of Director does not
support playing multiple RealMedia cast members at the same time.
RealMedia video
The RealVideo portion of your RealMedia file is rendered offscreen, and there is no Direct to
Stage option. This means that you can layer other sprites on top of your RealMedia sprite. For
example, you might do this if you wanted to display text across the RealVideo as it plays. You can
use new Lingo elements to jump forward or backward in the stream, or grab the current frame of
the RealVideo stream and use it as a texture for a 3D object.
RealVideo is fully integrated into the graphics capabilities of Director, and you add RealMedia
cast members containing RealVideo to a movie just as you would any other cast member. The
RealVideo content begins playing when the playhead reaches the frame containing the RealMedia
content, unless the
pausedAtStart
property of the sprite or cast member is set to
TRUE
.
RealMedia audio
You can have the RealAudio portion of your RealMedia cast member processed in one of two
ways: by Director (the default) or by RealPlayer. Your choice depends mainly on whether you
want to use Lingo sound elements.
•
If you use Director to process RealAudio in your movie, you can use Lingo sound methods and
properties to control and manipulate RealAudio, including mixing RealAudio with other
Director audio. However, note that all RealAudio is played in a single sound channel. If you
inadvertently overlap RealMedia cast members in the score, and the second RealMedia cast
member begins to play before the first cast member is finished, the second cast member’s sound
is played in the same sound channel as the first cast member, even if you assigned a different
sound channel to the second cast member. If the RealMedia cast members do not overlap, they
are played in the sound channel specified. (If you do not assign a sound channel to a
RealMedia cast member, the RealAudio is played in the highest available sound channel.)
For more information about working with Director audio, see the Lingo entries for
realPlayerNativeAudio()
,
soundChannel
(RealMedia)
, and
audio
(RealMedia)
in the
Lingo Dictionary. For information on using standard Lingo sound elements with RealMedia
content, see “Using Lingo sound elements with RealMedia” on page 354, as well as the sound
methods and properties in the main Lingo Dictionary.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...