Good morning,I would like to extract a jpg snapshot from the mobile server (I believe through getThumbnail).Does anyone have an example?Many thanks

Hi Alessandro,

I think you will need “GetThumbnailByTime” command.

You could look the documentation at:

https://doc.developer.milestonesys.com/mipsdkmobile/reference/protocols/mobile_command.html#command_GetThumbnailByTime

(click on the GetThumbnailByTime in the commands list).

You have to send :

CameraId - id of the camera in the system,

SeekType - [Time, TimeOrBefore, TimeOrAfter, TimeBefore, TimeAfter, DatabaseStart, DatabaseEnd, SequencePrevious, SequenceNext],

Time - Miliseconds since start of UNIX epoch, in UTC (needed only if SeekType contains “Time”)

You could also specify:

DestWidth - (optional) ,

DestHeight - (optional),

ComprLevel - (optional) [1 - 100] Jpeg quality, bigger is better, typically [60 - 80]

Unfortunately I don’t think we have sample for that particular command.

What platform you are interested in (Web, Android, iOS, .NET) ?

I could try to find something, eventually.

I believe you are using one of the SDK’s, right ?

Thank you for the answer.

I’d like to have a complete example for the WEB platform, in Javascript.

Thank you so much.

Hi Alessandro,

You can find attached very basic sample demonstrating how to get thumbnail with the latest time.

Unzip and place in the Mobile Server installation folder, under “Web\XPMobileSDK\Samples”.

After that you can access it on:

http://:/XPMobileSDK/Samples/Thumbnail/thumbnailSample.html

Thank you very much for your reply and for the code.

Bye.