MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual do Utilizador Página 13

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 80
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 12
Server-Side Communication ActionScript 13
Description
Method; clears recorded streams (FLV) files and MP3 files associated with the application
instance. You can use this method to clear a single stream, all streams associated with the
application instance, just those streams in a specific subdirectory of the application instance, or
just those streams whose names match a specified wildcard pattern.
The
streamPath parameter specifies the location and name of a stream, relative to the
applications instance directory. You can include a slash (/) as a delimiter between directories in
the path. The last element in the path can contain wildcard patterns (for example, a question
mark [?] and an asterisk [*]) or a stream name. The
application.clearStreams method
traverses the stream hierarchy along the specified path and clears all the recorded streams that
match the given wildcard pattern. Specifying a slash clears all the streams associated with an
application instance.
To clear MP3 files associated with the application instance, precede the path to the stream with
mp3: (for example, mp3:/streamPath). By default, application.clearStreams method clears
only recorded FLV streams. You can also explicitly clear only FLV streams by placing
flv: before
the stream path (for example,
flv:/streamPath). See Examples section below for examples of
clearing FLV and MP3 files.
The following are examples of some possible values for the
streamPath parameter:
/ or flv:/ clears all recorded (FLV) streams associated with the instance.
/report clears the stream file report01.flv from the application instance directory.
/presentations/intro clears the recorded stream file intro.flv from the application
instance’s
/presentations subdirectory; if intro is a directory name, no streams are deleted.
/presentations/* clears all recorded stream files stored from the application instance’s /
presentations
subdirectory. The /presentation subdirectory is also deleted if no streams
are in use within this name space.
mp3:/ clears all MP3 files associated with the instance.
mp3:/mozart/requiem clears the MP3 file named requiem.mp3 from the application
instance’s
/mozart subdirectory.
mp3:/mozart/* clears all MP3 file from the application instances /mozart subdirectory.
/presentations/report?? clears all recorded (FLV) streams that begin with report,
followed by any two characters. If there are directories within the given directory listing, the
directories are cleared of any streams that match
report??.
If an
application.clearStreams method is invoked on a stream that is currently recording, the
recorded file is set to length 0 (cleared), and the internal cached data is also cleared.
Note: You can also use the Server Management ActionScript API removeApp method to delete all the resources for
a single instance.
Examples
The following example clears all recorded streams:
function onApplicationStop(){
application.clearStreams("/");
}
Vista de página 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 79 80

Comentários a estes Manuais

Sem comentários