User Guide

Video.deblocking 999
Video.deblocking
Availability
Flash Player 6.
Usage
my_video.deblocking:Number
Description
Property; a number that specifies the behavior for the deblocking filter that the video compressor
applies as needed when streaming the video. The following are acceptable values:
0 (the default): Let the video compressor apply the deblocking filter as needed.
1: Never use the deblocking filter.
2: Always use the deblocking filter.
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.