
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
99
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.get()
Stream.get(name)
Static; returns a reference to a Stream object. If the requested object is not found, a new instance is created.
You can publish streams only in FLV format;
mp3:, mp4:, and id3: are not supported in the stream name for the
Stream.get() method.
Availability
Flash Communication Server 1
Parameters
name A string indicating the name of the stream instance to return.
Returns
A Stream object if the call is successful; otherwise,
null.
Examples
The following example gets the stream
myVideo and assigns it to the variable playStream. It then calls the
Stream.play() method from playStream.
var playStream = Stream.get("videos");
playStream.play("file1", 0, -1);
In the following example, the value of playStream is null because this method doesn’t support MP3 files:
var playStream = Stream.get("mp3:foo");
Stream.getOnMetaData()
Stream.getOnMetaData(name)
Returns an object containing the metadata for the named stream or video file. The object contains one property for
each metadata item. The Flash Video Exporter utility (version 1.1 or later) embeds a video's duration, creation date,
data rates, and other information into the video file. This method is currently supported only with FLV files.
Availability
Flash Media Server 2
Commenti su questo manuale