User Guide

Chapter 3170
Description
RealMedia sprite or cast member property; allows you to get or set the current time of the
RealMedia stream, in milliseconds. If the RealMedia cast member is not playing, the value of this
property is 0, which is the default setting. This is a playback property, and it is not saved.
If the stream is playing when the
currentTime property is set or changed, a seek action takes
place, the stream rebuffers, and then playback resumes at the new time. If the stream is paused
(
#paused mediaStatus value) when currentTime is set or changed, the stream redraws the
frame at the new time, and it resumes playback if
pausedAtStart is set to FALSE. When the
stream is paused or stopped in the RealMedia viewer, mediaStatus is #paused. When the stream
is stopped by the Lingo
stop command, mediaStatus is #closed. This property has no effect if
the streams
mediaStatus value is #closed. When you set integer values, they are clipped to the
range from 0 to the duration of the stream.
Setting
currentTime is equivalent to invoking the seek command: x.seek(n) is the same as
x.currentTime = n. Changing currentTime or calling seek will require the stream to be
rebuffered.
Examples
The following examples show that the current time of the sprite 2 and the cast member Real is
15,534 milliseconds (15.534 seconds) from the beginning of the stream.
put sprite(2).currentTime
-- 15534
put member("Real").currentTime
-- 15534
The following examples cause playback to jump 20,000 milliseconds (20 seconds) into the stream
of sprite 2 and the cast member Real.
sprite(2).currentTime = 20000
member("Real").currentTime = 20000
See also
duration (RealMedia), seek, mediaStatus
cursor (command)
Syntax
cursor [castNumber, maskCastNumber]
cursor whichCursor
cursor (member whichCursorCastMember)
Description
Command; changes the cast member or built-in cursor that is used for a cursor and stays in effect
until you turn it off by setting the cursor to 0.
Use the syntax cursor [castNumber, maskCastNumber] to specify the number of a cast
member to use as a cursor and its optional mask. The cursor’s hot spot is the registration point
of the cast member.