MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuel d'utilisateur Page 101

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 155
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 100
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
Vue de la page 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 154 155

Commentaires sur ces manuels

Pas de commentaire