
167
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
See also
Stream.maxQueueDelay, Stream.maxQueueSize
Stream.receiveAudio
myStream.receiveAudio()
A Boolean value that indicates whether the server receives the audio in a stream (true) or not (false). The default
value is
true.
Availability
Flash Media Server 4.5
Stream.receiveVideo
myStream.receiveVideo
A Boolean value that indicates whether the server receives the video in a stream (true) or not (false). The default
value is
true.
To use Apple HTTP Live Streaming to stream content over a cellular network, Apple requires that one stream be
audio-only. To create an audio-only stream, set the
Stream.receiveVideo property to false. The Adobe Media
Server livepkgr application (rootinstall/applications/livepkgr) includes this code.
Availability
Flash Media Server 4.5
See also
Stream live media (HTTP)
Stream.record()
myStream.record(flag, [maxDuration, maxSize])
Records the data passing through a Stream object and creates a file of the recorded stream. You can use this method
to do the following:
• Call Stream.record() to record a new file or to overwrite the data in an existing file with the recorded data.
• Call Stream.record("append") to append the recorded data to the end of an existing file.
• Call Stream.record("appendWithGap") to append the recorded data to the end of an existing file, while
maintaining the gaps in the stream being recorded. Use this mode only when the
AssumeAbsoluteTime
configuration is
true and the publisher is sending absolute time. See Using DVR with dynamic streaming.
• Call Stream.record(false) to stop recording.
You can record or append in F4V or FLV format. To record a file with multiple codecs, record the file in F4V format.
Before you call the Stream.record() method, call the Stream.get() method to create a Stream object. The
recording format is determined by the filename you pass to the
Stream.get() method.
Note: To play or edit F4V files recorded by Flash Media Server in other tools, use the Adobe Flash Media Server F4V Post
Processor tool. The tool is available at
www.adobe.com/go/fms_tools.
Comentários a estes Manuais