
501
It is usually safe to preload the first couple of seconds of a video and then continue streaming
from that point on.
If you know the data rate of your movie, you can estimate the setting for
preLoadRAM
. For example,
if your movie has a data rate of 300K per second, set
preLoadRAM
to 600K if you want to preload
the first 2 seconds of the video file. This is only an estimate, but it works in most situations.
Example
This statement sets
preLoadRAM
to 600K, to preload the first 2 seconds of a movie with a data
rate of 300K per second:
set the preLoadRAM = 600
See also
loop (keyword)
,
next
preLoadTime
Syntax
member(
whichCastMember
).preLoadTime
the preLoadTime of member
whichCastMember
sound(
channelNum
).preLoadTime
Description
Cast member and sound channel property; for cast members, specifies the amount of the
Shockwave Audio (SWA) streaming cast member to download, in seconds, before playback begins
or when a
preLoadBuffer
command is used. The default value is 5 seconds.
This property can be set only when the SWA streaming cast member is stopped.
For sound channels, the value is for the given sound in the queue or the currently playing sound if
none is specified.
Examples
The following handler sets the preload download time for the SWA streaming cast member Louis
Armstrong to 6 seconds. The actual preload occurs when a
preLoadBuffer
or
play
command
is issued.
on mouseDown
member("Louis Armstrong").stop()
ember("Louis Armstrong").preLoadTime = 6
end
This statement returns the preLoadTime of the currently playing sound in sound channel 1:
put sound(1).preLoadTime
See also
preLoadBuffer member
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...