MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manual de usuario Pagina 168

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 172
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 167
165
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
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);
application.myStream.play("mp4:file1.mp4", -1, 5, false);
}
The following example plays F4V files:
application.myStream = Stream.get("foo");
if(application.myStream) {
application.myStream.play("mp4:beethoven", 0);
application.myStream.play("mp4:mozart", 0, false);
}
In the following example, data messages in the recorded stream file log.flv are returned at the intervals at 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 at which they were originally recorded:
application.myStream = Stream.get("data");
if (application.myStream) {
application.myStream.play("log", 0, -1, 2);
}
A server-side stream cannot subscribe to itself. For example, the following code is invalid:
// Client-side code
var ns = new NetStream
ns.publish("TestStream");
// Server-side code
st = Stream.get("TestStream");
st.play("TestStream");
Stream.publishQueryString
myStream.publishQueryString
The query string specified in the stream path when the stream was published.
Use the
Stream.publishQueryString
,
Stream.maxQueueDelay
, and
Stream.maxQueueSize
properties to configure
the live queue for live streams. These Server-Side ActionScript properties override the values set in the
Application/StreamManager/Live/Queue/
section of the Application.xml configuration file. The live queue, also
known as live aggregate messages, batches multiple messages into a single composite message to increase server
performance. Dynamic streaming depends on the values of
maxQueueDelay
and
maxQueueSize
to determine when to
switch to a higher or lower bitrate stream. Set
maxQueueDelay
to a value long enough to produce a large burst of data.
Vista de pagina 167
1 2 ... 163 164 165 166 167 168 169 170 171 172

Comentarios a estos manuales

Sin comentarios