
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
98
Read-only; indicates how long to buffer messages before a stream plays, in seconds. This property applies only when
playing a stream from a remote server or when playing a recorded stream locally. Call
Stream.setBufferTime()
to set the bufferTime property.
A message is data that is sent back and forth between Flash Media Server and Flash Player. The data is divided into
small packets (messages), and each message has a type (audio, video, or data).
Availability
Flash Communication Server 1
Stream.clear()
myStream.clear()
Deletes a recorded FLV file from the server.
Availability
Flash Communication Server 1
Returns
A boolean value of
true if the call succeeds; otherwise, false.
Example
The following example deletes a recorded stream called playlist.flv. Before the stream is deleted, the example defines
an
onStatus() handler that uses two information object error codes, NetStream.Clear.Success and
NetStream.Clear.Failed, to send status messages to the application log file and the Live Log panel in the Admin-
istration Console.
s = Stream.get("playlist");
if (s){
s.onStatus = function(info){
if(info.code == "NetStream.Clear.Success"){
trace("Stream cleared successfully.");
}
if(info.code == "NetStream.Clear.Failed"){
trace("Failed to clear stream.");
}
};
s.clear();
}
Stream.flush()
myStream.flush()
Flushes a stream. If the stream is used for recording, the flush() method writes the contents of the buffer associated
with the stream to the recorded file.
It is highly recommended that you call
flush() on a stream that contains only data. Synchronization problems can
occur if you call the
flush() method on a stream that contains data and either audio, video, or both.
Important: H.264 data and AAC data is not copied to a recorded video file.
Availability
Flash Media Server 2
Commenti su questo manuale