368
Example
This statement changes cast members when the desired cast member is downloaded and
available locally:
if member("background").mediaReady = TRUE then
sprite(2).memberNum = 10
-- 10 is the number of cast member "background"
end if
See also
frameReady()
mediaStatus
Syntax
sprite(
whichSprite
).mediaStatus
member(
whichCastmember
).mediaStatus
Description
RealMedia sprite or cast member property; allows you to get a symbol representing the state of the
RealMedia stream. This property can be tested but not set, and it is dynamic during playback.
This property can have the following values:
•
#closed
indicates that the RealMedia cast member is not active. The
mediaStatus
value
remains
#closed
until playback is initiated.
•
#connecting
indicates that a connection to the RealMedia stream is being established.
•
#opened
indicates that a connection to the RealMedia stream has been established and is open.
This is a transitory state that is very quickly followed by
#buffering
.
•
#buffering
indicates that the RealMedia stream is being downloaded into the playback
buffer. When buffering is complete (
percentBuffered
equals 100), the RealMedia stream
begins to play if the
pausedAtStart
property is
FALSE
. For more information, see
percentBuffered
.
•
#playing
indicates that the RealMedia stream is currently playing.
•
#seeking
indicates that play was interrupted by the
seek
command.
•
#paused
indicates that play has been interrupted, possibly by the user clicking the Stop button
in the RealMedia viewer, or by a Lingo script invoking the
pause
method.
•
#error
indicates that the stream could not be connected, buffered, or played for some reason.
The
lastError
property reports the actual error.
Depending on the cast member’s
state (RealMedia)
value, a different
mediaStatus
property
value is returned. Each
mediaStatus
value corresponds to only one
state
value. (For more
information, see the description of the
state (RealMedia)
property.)
Examples
The following examples show that the RealMedia element in sprite 2 and the cast member
Real is playing.
put sprite(2).mediaStatus
-- #playing
put member("Real").mediaStatus
-- #playing
See also
state (RealMedia)
,
percentBuffered
,
lastError
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...