User Guide

852 Chapter 14: Properties
#connecting indicates that a connection to the RealMedia or Windows Media stream is
being established.
#opened indicates that a connection to the RealMedia or Windows Media stream has been
established and is open. This is a transitory state that is very quickly followed by
#buffering.
#buffering indicates that the RealMedia or Windows Media stream is being downloaded into
the playback buffer. When buffering is complete (
percentBuffered equals 100), the stream
begins to play if the
pausedAtStart property is FALSE. For more information, see
percentBuffered.
#playing indicates that the RealMedia or Windows Media 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 or Windows Media viewer, or by a 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 members
state (RealMedia) value, a different mediaStatus property
value is returned. Each
mediaStatus value corresponds to only one state value.
Example
The following examples show that the RealMedia element in sprite 2 and the cast member
Real is playing.
-- Lingo syntax
put(sprite(2).mediaStatus) -- #playing
put(member("Real").mediaStatus) -- #playing
// JavaScript syntax
put(sprite(2).mediaStatus); // #playing
put(member("Real").mediaStatus); // #playing
See also
state (RealMedia), percentBuffered, lastError
mediaXtraList
Usage
-- Lingo syntax
_player.mediaXtraList
// JavaScript syntax
_player.mediaXtraList;
Description
Player property; returns a linear list of all media Xtra extensions available to the Director player.
Read-only.
Example
This statement displays in the Message window all media Xtra extensions that are available to the
Director Player.
-- Lingo syntax
put(_player.mediaXtraList)