I m Trying to set the preset using milestone web sdk(javascript) XPMobileSDK.ptzPreset(videoController,presetName);but its not working even there are nor errors any idea presetName:: PtzPreset0

Hi,

Once you get all available presets for a camera they are in the following format:

{
    PtzPreset0: "MyTestPreset1", 
    PtzPreset1: "MyTestPreset2"
}

In the ptzPreset command you should send the value of the preset, not its key.

Let me know if this is your case.

Thanks for the help