MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manuel d'utilisateur Page 72

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 80
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 71
72
The following example creates a playlist of three MP3 files (beethoven.mp3, mozart.mp3, and
chopin.mp3) and plays each file in turn over the live stream foo:
application.myStream = Stream.get("foo");
if(application.myStream) {
application.myStream.play("mp3:beethoven", 0);
application.myStream.play("mp3:mozart", 0, false);
application.myStream.play("mp3:chopin.mp3", 0, false);
}
In the following example, data messages in the recorded stream file log.flv are returned at the
intervals which they were originally recorded.
application.myStream = Stream.get("data");
if (application.myStream) {
application.myStream.play("log", 0, -1);
}
In the following example, data messages in the recorded stream file log.flv are returned all at
once, rather than at the intervals which they were originally recorded.
application.myStream = Stream.get("data");
if (application.myStream) {
application.myStream.play("log", 0, -1, 2);
}
Stream.record
Availability
Flash Communication Server MX.
Usage
Stream.record(flag)
Parameters
flag This parameter can have the value record, append, or false. If the value is record, the
data file is overwritten if it exists. If the value is
append, the incoming data is appended to the end
of the existing file. If the value is
false, any previous recording stops. By default, the value is
record.
Returns
A Boolean value of true if the recording succeeds, false otherwise.
Description
Method; records all the data going through a Stream object.
Vue de la page 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 78 79 80

Commentaires sur ces manuels

Pas de commentaire