public deblocking : Number
Specifies the type of deblocking filter applied to decoded video as part of postprocessing. Two deblocking filters are available, one in the Sorenson codec and one in the On2 VP6 codec. The following values are acceptable:
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.
Flash Communication Server 1; Flash Player 6.
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 code 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("rtmp://someServer/someApp");
var my_ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("video1");
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.