MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manual do Utilizador Página 172

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 171
169
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
//Start recording
s = Stream.get("mp4:serverStream.f4v");
if (s){
s.record();
s.play("clientStream");
}
// Stop recording.
s = Stream.get("serverStream");
if (s){
s.record(false);
}
Clients can use client-side code to subscribe to the live stream that was published by the client and recorded on the
server:
someNetStream.play("mp4:serverStream.f4v");
The following example passes the -1 for maxDuration and maxSize. This value sets an unlimited duration and size
for the recording. These values override the Application.xml values for
<MaxDuration> and <MaxSize>. However the
duration and size of the recording cannot exceed the values of <
MaxDurationCap> and <MaxSizeCap> set in the
Application.xml file.
Stream.record("record", -1, -1);
The following example sets maxDuration to 50 seconds and uses the <MaxSize> setting from Application.xml. The
duration and size of the recording cannot exceed the values of <
MaxDurationCap> and <MaxSizeCap> set in the
Application.xml file.
Stream.record("record",50,-2)
See also
Stream.get(), Stream.play()
Stream.time
myStream.time
Read-only; the number of seconds the stream has been playing. This value is the timestamp of the latest frame that
flowed out of the stream.
Note: The Stream.time property is limited to 32-bit uint maximum value. This property resets in 49 days.
Availability
Flash Media Interactive Server 3.5 and Flash Media Development Server 3.5
Vista de página 171
1 2 ... 167 168 169 170 171 172

Comentários a estes Manuais

Sem comentários