Can't set the ImageQuality level of a ImageViewerControl

Hello, I am creating an app with a ImageViewerControl and I have a problem because the ImageQuality method don’t run in my app I Don’t know why but there is not change on the quality of my image video.

Does any body had this problem ?

Try to run the Video Viewer Quality sample.

http://doc.developer.milestonesys.com/html/index.html?base=samples/videoviewerquality_sample.html&tree=tree_2.html

Does it work for you?

Values 101-104 can be used. These values correspond with the Image Quality settings implemented in the Smart Client. Referring to the Smart Client help, the Camera settings page:

--

Image quality

Determines the quality of video when viewed, but also affects bandwidth usage. If your XProtect Smart Client is used over the internet, over a slow network connection, or if for other reasons you need to limit bandwidth use, image quality can be reduced on the server side by selecting Low or Medium.

When selecting a reduced image quality, images from the selected camera are re-encoded to a JPEG format on the surveillance system server before being sent to the XProtect Smart Client. Re-encoding takes place along the following lines:

Full: The default setting, providing the full quality of the original video.

Super high (for megapixel): Re-encoding to an output width of 640 pixels (VGA) and a JPEG quality level of 25%.

High: Re-encoding to an output width of 320 pixels (QVGA) and a JPEG quality level of 25%.

Medium: Re-encoding to an output width of 200 pixels and a JPEG quality level of 25%.

Low: Re-encoding to an output width of 160 pixels and a JPEG quality level of 20%.

Height will scale according to the width and the aspect ratio of the original video.

Your image quality selection will apply for live as well as recorded video, and for JPEG as well as MPEG. For MPEG, however, only keyframes will be re-encoded when viewing live video, whereas all frames will be re-encoded when viewing recorded video.

While using a reduced image quality helps limit bandwidth use, it will—due to the need for re-encoding images—use additional resources on the surveillance system server.

Tip: You can quickly reduce the bandwidth usage for all cameras in the view by reducing the image quality for a single camera, then clicking the Apply To All button.

--

NOTE:

When using values 101 to 104 the recording server will need to use decoding and re-encoding (transcoding) of the images this puts extra load on the recording server, it can potentially cause 100% CPU in the recording server.

In c-code there is no support for values between 1 and 99.

In c-code you have the option to set up your cameras to have multiple streams, this is recommended instead of recording server transcoding.

The videoviewerquality sample works for me, I am trying to find the problem in my code . Thank you for the NOTE, effectively I am trying to find the good way to manage the VideoQuality.