this._nc = new NetConnection();
_root.Debug.write("connectRtmpConnection URL:",url.getText());
this._nc.connect(url.getText());
this._nc.onStatus = function(info){
_root.Debug.write(info.code,info);
}
this._nsBroadCast.publish(false);
broadCastVideo.attachVideo(null);
broadCastVideo.stop();
this._nsBroadCast.close();
disabled, cause this leads to Buffer-Full-Buffer-Empty-Events after re-syncing
playVideo.attachVideo(this._nsPlay);
this._nsPlay.play(streamname.getText(),-1);
]]>
this._nsPlay.pause();
this._nsPlay.close();
playVideo.attachVideo(null);
playVideo.stop();
You can test all Settings of Audio and Video Streamings which are currently used in
OpenMeetings here.
Change the URL sothat 127.0.0.1 points to your Red5-Installation!
You first need to connect to a stream before you start to broadcast!
You first need broadcast a stream with a name before you try to subscribe to it!
If somebody already uses that streamname you get an NetStream *Bad.StreamName*, you can take an StreamName you like,
but of course you have to tell the *player* that it will need to use that StreamName!
if (canvas.isinited) {
if (v){
broadCastVideo.setAttribute('width',320);
broadCastVideo.setAttribute('height',240);
broadCastVideo.applySizeToVid();
playVideo.setAttribute('width',320);
playVideo.setAttribute('height',240);
playVideo.applySizeToVid();
} else {
broadCastVideo.setAttribute('width',128);
broadCastVideo.setAttribute('height',96);
broadCastVideo.applySizeToVid();
playVideo.setAttribute('width',128);
playVideo.setAttribute('height',96);
playVideo.applySizeToVid();
}
}
super.init();
var mc = immediateparent.sprite.attachResourceToChildView("__LZvideo", this.sprite);
this.sprite.setMovieClip(mc);
this.__LZmovieClipRef = this.sprite.__LZmovieClipRef;
var vid = this._getflashvideo();
vid._x = 0;
vid._y = 0;
this.applySizeToVid();
if ($debug) Debug.write("init");
var vid = this._getflashvideo();
vid._width = this.width;
vid._height = this.height;
this.__LZmovieClipRef.__lzvideo.clear();
var vid = this._getflashvideo();
vid.attachVideo(video);
width:Number [optional] - The requested capture width, in pixels. The default value is 160.
height:Number [optional] - The requested capture height, in pixels. The default value is 120.
fps:Number [optional] - The requested rate at which the camera should capture data, in frames per second. The default value is 15.
favorArea:Boolean [optional] - A Boolean value that specifies how to manipulate the width, height, and frame rate if the camera does not have a native mode that meets the specified requirements. The default value is true, which means that maintaining capture size is favored; using this parameter selects the mode that most closely matches width and height values, even if doing so adversely affects performance by reducing the frame rate. To maximize frame rate at the expense of camera height and width, pass false for the favorArea parameter.
bandwidth:Number [optional] - An integer that specifies the maximum amount of bandwidth that the current outgoing video feed can use, in bytes per second. To specify that Flash video can use as much bandwidth as needed to maintain the value of frameQuality, pass 0 for bandwidth. The default value is 16384.
quality:Number [optional] - An integer that specifies the required level of picture quality, as determined by the amount of compression being applied to each video frame. Acceptable values range from 1 (lowest quality, maximum compression) to 100 (highest quality, no compression). To specify that picture quality can vary as needed to avoid exceeding bandwidth, pass 0 for quality. The default value is 0.
rate:Number - The rate at which the microphone should capture sound, in kHz. Acceptable values are 5, 8, 11, 22, and 44. The default value is 8 kHz if your sound capture device supports this value. Otherwise, the default value is the next available capture level above 8 kHz that your sound capture device supports, usually 11 kHz.
public useEchoSuppression : Boolean [read-only]
Property (read-only); a Boolean value of true if echo suppression is enabled, false otherwise. The default value is false unless the user has selected Reduce Echo in the Flash Player Microphone Settings panel.
super.init();
var mc = immediateparent.sprite.attachResourceToChildView("__LZvideo", this.sprite);
this.sprite.setMovieClip(mc);
this.__LZmovieClipRef = this.sprite.__LZmovieClipRef;
var vid = this._getflashvideo();
vid._x = 0;
vid._y = 0;
this.applySizeToVid();
if ($debug) Debug.write("init");
var vid = this._getflashvideo();
vid._width = this.width;
vid._height = this.height;
this.__LZmovieClipRef.__lzvideo.clear();
var vid = this._getflashvideo();
vid.attachVideo(video);
public bufferTime : Number [read-only]
The number of seconds assigned to the buffer by NetStream.setBufferTime(). The default value is .1(one-tenth of a second). To determine the number of seconds currently in the buffer, use NetStream.bufferLength.