638
The script also saves the actual number of bytes streamed in a variable called
bytesReceived
. If the
number of bytes actually streamed does not match the number of bytes requested, the script
updates a text cast member to report the number of bytes actually received. The script keeps the
playhead looping in the current frame until the cast member has finished loading into memory.
on exitFrame
if member(10).percentStreamed < 100 then
bytesReceived = member(10).stream(32000)
if bytesReceived < 32000 then
member("Message Line").text = "Received only" && bytesReceived \
&& "of 32,000 bytes requested."
updateStage
else
member("Message Line").text = "Received all 32,000 bytes."
end if
go the frame
end if
end
streaming
Syntax
member(
whichMember
).streaming
the streaming of member
whichMember
Description
QuickTime cast member property. When
TRUE
, allows QuickTime playing over the Internet to
begin playing immediately while the member downloads to the user’s computer. When
FALSE
, the
member must download completely before playback will begin.
Defaults to
TRUE
for Director movies made with Director 7.02 and later. Defaults to
FALSE
for
movies made with earlier versions of Director.
If the QuickTime member contains a text track with cue points, the text track must be set to
preload in order for Director to make use of the cue points. You set the text track to preload using
a video editor.
Example
This statement sets the streaming of member SunriseVideo to
FALSE
, causing it to download
completely before playing back in Shockwave or ShockMachine:
member("SunriseVideo").streaming = 0
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...