
66
Stream.bufferTime
Availability
Flash Communication Server MX.
Usage
Stream.bufferTime
Description
Property (read-only); indicates how long to buffer messages before a stream is played. This
property applies only when playing a stream from a remote server or when playing a recorded
stream locally. To set this property use
Stream.setBuffertime.
A message is data that is sent back and forth between the Flash Communication Server and the
Flash Player. The data is divided into small packets (messages), and each message has a type
(audio, video, or data).
See also
Stream.setBufferTime
Stream.clear
Availability
Flash Communication Server MX.
Usage
Stream.clear()
Parameters
None.
Returns
A Boolean value of true if the call succeeds, false otherwise.
Description
Method; deletes a recorded stream file (FLV) from the server.
Example
This example deletes a recorded stream called foo.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
Output window.
s = Stream.get("foo");
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();
}
Commentaires sur ces manuels