144
Client-Side ActionScript Language Reference
If a mode greater than 2 is selected for video when you are using the Sorenson codec, the
Sorenson decoder defaults to mode 2 internally.
The deblocking filter has an effect on overall playback performance, and it is usually not
necessary for high-bandwidth video. If your system is not powerful enough, you might
experience difficulties playing back video with this filter enabled.
Example
The following example plays video1.flv in the
my_video
Video object, and lets the user
change the deblocking filter behavior on video1.flv. Add a Video object called
my_video
and
a ComboBox instance called
deblocking_cb
to your file, and then add the following
ActionScript to your FLA or AS file:
var deblocking_cb:mx.controls.ComboBox;
var my_video:Video; // my_video is a Video object on the Stage.
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("video1.flv");
deblocking_cb.addItem({data:0, label:'Auto'});
deblocking_cb.addItem({data:1, label:'No'});
deblocking_cb.addItem({data:2, label:'Yes'});
var cbListener:Object = new Object();
cbListener.change = function(evt:Object) {
my_video.deblocking = evt.target.selectedItem.data;
};
deblocking_cb.addEventListener("change", cbListener);
Use the ComboBox instance to change the deblocking filter behavior on video1.flv.
Video.height
Availability
■
Flash Player 6.
■
Flash Media Server (not required).
Usage
public height : Number [read-only]
Содержание FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER...
Страница 1: ...Client Side ActionScript Language Reference for Flash Media Server 2...
Страница 4: ...4 Contents...
Страница 148: ...148 Client Side ActionScript Language Reference...