MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Instrukcja Użytkownika Strona 153

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 152
150
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
// Load the WebServices class:
load("webservices/WebServices.asc");
// Prepare the WSDL location:
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";
// Instantiate the web service object by using the WSDL location:
stockService = new WebService(wsdlURI);
// Handle the WSDL parsing and web service instantiation event:
stockService.onLoad = function(wsdl){
wsdlField.text = wsdl;
}
// If the wsdl fails to load, the onFault event is fired:
stockService.onFault = function(fault){
wsdlField.text = fault.faultstring;
}
Stream class
The Stream class lets you manage or republish streams in an application. A Stream object is the server-side equivalent
of the client-side NetStream object.
You can’t attach audio or video sources to a Stream object; you can only play and manage existing streams. Use the
Stream class to shuffle existing streams in a playlist, pull streams from other servers, and control access to streams. You
can also record streams published by a client and record data streams such as log files.
A stream is a one-way connection between a client running Flash Player and a server running Adobe Media Server. A
stream can also be a connection between two servers running Adobe Media Server. You can create a stream in Server-
Side ActionScript by calling
Stream.get(). A client can access multiple streams at the same time, and there can be
hundreds or thousands of Stream objects active at the same time. You can record in FLV and F4V format.
Streams can contain ActionScript data. Call the Stream.send() method to add data to a stream. You can extract this
data without waiting for a stream to play in real time, such as when you’re creating a log file. You can also use it to add
metadata to a stream.
Availability
Flash Communication Server 1
Property summary
Property Description
Stream.bufferTime Read-only; indicates how long to buffer messages before a stream is played, in seconds.
Stream.generateCCInfo Read-write; indicates whether 608-708 captions are extracted from the H264 NALU and converted to
onCaptionInfo AMF message.
Stream.maxQueueDelay Read-only; the maximum time, in milliseconds, that the live queue can delay transmitting messages.
Stream.maxQueueSize Read-only; the maximum size, in bytes, that the live queue can grow to before transmitting the messages it
contains.
Stream.name Read-only; contains a unique string associated with a live stream.
Przeglądanie stron 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag