The streaming process is initiated when the playhead enters the span of the RealMedia sprite in
the Score, the
play
Play button in the RealMedia viewer. Calling this property returns a numeric value indicating the
state of the streaming process for the RealMedia cast member. For each state, there is one or more
corresponding
mediaStatus (RealMedia, Windows Media)
value is observed only in one state. For example, the
are present only when the value of
#buffering
The value of the
state
on a cast member. If
and as a result, any Lingo relying on property data would be incorrect. When
greater than or equal to 2 and less than 4, the RealMedia cast member is not displayed, but all the
Lingo properties and methods have well-defined values and can be used to perform Lingo
operations on the cast member.
When the streaming process is initiated, the
unless an error (-1) occurs, which prevents the streaming process from starting:
-1 (error)
indicates that there is something wrong, possibly a leftover error from the previous
RealMedia stream. You may get more information by checking the
state is the equivalent of
0 (closed)
indicates that streaming has not begun, or that cast member properties are in initial
states or are copies from an earlier playing of the cast member. This state is the equivalent of
for the
#closed
mediaStatus
1 (connecting)
indicates that streaming has begun but is in the very early stages of connecting to
the server, and there is not enough information available locally to do anything with the cast
member. This state is the equivalent of
2 (open)
indicates that the Lingo properties have been refreshed from the actual stream. When
is greater than or equal to 2, the
state
RealMedia stream are known. This state is transitory and quickly changes to state 3. This state is
the equivalent of
#opened
3 (seeking or buffering)
current, but the cast member is not quite ready to play. The Stage or RealMedia viewer displays a
black rectangle or the RealNetworks logo. If this state is the result of rebuffering due to network
congestion, the
state
or
#buffering
#seeking
4 (playing)
indicates that the RealMedia stream is playing (or paused) without problems or
errors. This is the state during normal playback. This state is the equivalent of
for the
#paused
mediaStatus
Example
The following examples show that the state of streams in sprite 2 and the cast member Real is 0,
which is closed:
-- Lingo syntax
put(sprite(2).state) -- 0
put(member("Real").state) -- 0
method is invoked on a RealMedia sprite or cast member, or a user clicks the
property provides important information in terms of performing Lingo
is less than 2, some of the Lingo properties may be incorrect,
member.state
for the
#error
mediaStatus
property.
#connecting
height
for the
mediaStatus
indicates that all of the RealMedia cast member's Lingo properties are
value quickly changes back to
for the
mediaStatus
property.
property value; each
mediaStatus
is 3.
state
property cycles through the following states,
state
property.
for the
mediaStatus
,
, and
width
duration
property.
(playing). This state is the equivalent of
4
property.
mediaStatus
property values
#seeking
member.state
property. This
lastError
property.
properties of the
#playing
state (RealMedia) 1013
and
is
or
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers