MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Reference page 84

Client-side actionscript language reference for flash media server 2
Table of Contents

Advertisement

Example
The following function publishes a stream on a NetConnection named
camera output from
active_cam
function pubLive() {
// Create a new source stream.
var source_ns:NetStream = new NetStream(my_nc);
/* Attach the camera activity to the source stream. This call causes a
warning message to show which service is requesting access. It also gives
the user the option of not sending the camera activity to the server. */
source_ns.attachVideo(active_cam);
// Get the stream name from the user input.
var mySubj:String = subject;
/* Assuming the user named the stream 'webCamStream',
publish the live camera activity as 'webCamStream'. */
source_ns.publish(mySubj, "live");
}
See also the example for
See also
,
Camera class
Camera.setMode()
Video.attachVideo()
NetStream.bufferLength
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
public bufferLength : Number [read-only]
Description
Property (read-only); the number of seconds of data currently in the buffer. You can use this
property in conjunction with
being full—for example, to display feedback to a user who is waiting for data to be loaded
into the buffer.
84
Client-Side ActionScript Language Reference
.
MovieClip.attachAudio()
,
NetStream.publish()
NetStream.bufferTime
my_nc
.
,
NetStream.receiveVideo()
to estimate how close the buffer is to
containing the
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Media server 2

Table of Contents