
153
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Stream.flush()
myStream.flush()
Flushes a stream. If the stream is used for recording, the flush() method writes the contents of the buffer associated
with the stream to the recorded file.
It is highly recommended that you call flush() on a stream that contains only data. Synchronization problems can
occur if you call the
flush() method on a stream that contains data and either audio, video, or both.
Availability
Flash Media Server 2
Returns
A boolean value of true if the buffer was successfully flushed; otherwise, false.
Example
The following example flushes the myStream stream:
// Set up the server stream.
application.videoStream = Stream.get("aVideo");
if (application.videoStream){
application.videoStream.record();
application.videoStream.send("test", "hello world");
application.videoStream.flush();
}
Stream.generateCCInfo
myStream.generateCCInfo
A Boolean value that indicates whether AMS extracts 608-708 captions from the H264 NALU and constructs
corresponding
onCaptionInfo AMF messages for use in HDS live and RTMP streams. This property overrides the
GenerateCCInfo setting in the Application.xml file. The default value is false. A value of true, will enable closed
captioning.
Note: If your video streams are relayed from AMS server to AMS server, only the ingest server can generate captions.
Setting
Stream.generateCCInfo to true for non-ingest servers has no effect.
For more information, see StreamManager.
Availability
Adobe Media Server 5.0.1
Stream.get()
Stream.get(name)
Static; returns a reference to a Stream object. If the requested object is not found, a new instance is created. After you
call the
Stream.get() method, you can call the Stream.record() and Stream.play() methods to publish and
record streams.
You can publish and record streams in FLV, F4V, or F4F format. F4F format is for HTTP Dynamic Streaming.
Commentaires sur ces manuels