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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 172
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 129
127
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
ProxyStream class
Use the ProxyStream class to build large-scale applications that use DVR functionality. DVR functionality lets users
pause live video and resume playback from the paused location. Users can rewind and play recorded sections of the
video and seek forward to catch up again.
To scale applications, use server-side NetConnection objects to create a chain of servers. In such a scenario, all the
servers run as local servers. To explain this scenario, the ingest servers at the top layer are called origin servers, servers
in the middle layer are called intermediate servers, and the servers on the bottom layer (which serve subscribers) are
called edge servers.
Note: The terms “origin” and “edge” in this scenario do not refer to local and remote operation (see the Proxy section of
the Vhost.xml configuration file). All servers in this scenario run in local mode.
Only the server controlled by the publisher records streams. Servers further down the chain, closer to subscribers, do
not record the stream and do not have the stream available for playback. If a recorded stream does not exist on a server,
subscribers cannot access it. Use the ProxyStream class to pull segments of recorded streams from another server
where the segments are available. Call
ProxyStream.proxyFrom() to line up an intermediate server with an origin
server. When a recorded stream is requested in the intermediate server, it automatically pulls the required segment
down from the origin server. The segment is stored in the memory cache of the intermediate server just as segments
are stored in the origin server. Every subscriber going through the intermediate server gets the data directly from the
cache so that segments can be shared across multiple clients. Set up an edge server to pull data from an intermediate
server, which pulls data from the origin server when necessary. It’s a good idea to code your application so that when
streams are idle they failover to a different source.
No disk usage is required in the intermediate and edge server. File segments that have been pulled from another server
are stored in the memory cache. The server uses an LRU (Least Recently Used) scheme to maintain the cache. The
server pushes older segments out of the cache when the memory reaches a value that you can configure. To save
bandwidth and improve performance, the server can also save segments in the memory on disk. You can configure
the location of the cache directory, and the maximum size of the cache.
Availability
Flash Media Server 3.5
Method summary
Event handler summary
ProxyStream constructor
new ProxyStream(connection)
Creates an instance of the ProxyStream class.
Method Description
ProxyStream.proxyFrom() Proxies a stream from one Adobe Media Server to another over a NetConnection.
ProxyStream.stop() Stops proxying a stream.
Event handler Description
ProxyStream.onStatus() Called every time a status change or error occurs in a ProxyStream object.
Vista de pagina 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 171 172

Comentarios a estos manuales

Sin comentarios