Playback problem with Mobile MIP SDK

Hi,

we integrated Milestone on our widget with Mobile MIP SDK. All works fine except when we try to playback records in a manually set time interval. Milestone returns no data or the first record of database.

We have record of 5 second every 30 minutes…We need that when we set start and end of time restriction , Milestone go to return the first record in this time interval.

The function we use is XPMobileSDK.RequestStream(options, success, error) where in options we have :

options = {

           CameraId: cameraId,

           DestWidth: width,

           DestHeight: height,

           SignalType: "Playback" ,

           MethodType: 'Push' ,

           Fps: 25,

            ComprLevel: 71,

           KeyFramesOnly: 'No',

           RequestSize: 'Yes',

           StreamType: 'Transcoded',

           TImeRestrictionStart: Number(dateTime),

           TImeRestrictionEnd: Number(dateTime) + 200000,

           SeekType: "Time",

           Time: 1000

       };

In SeekType we also tried to use TimeOrBefore,TimeOrAfter,TimeAfter,TimeBefore.

Thanks for help.

Hi Andriy,

Value of Time parameter should be in milliseconds since Unix epoch, as described in our documentation. Your current value (1000) means you’re requesting something very very old and that’s why you receive no data or the first DB record.

You can also remove TImeRestrictionStart and TImeRestrictionEnd since those are not supported at all. We currently do not provide any way to restrict the playback duration or stop it after a given time, so you have to take care of that yourself.