How to request a 1 minute video stream of an earlier time?

Hi, I’m using the MIP SDK Mobile (Web) for my application. The Mobile server I’m using is 12.1 (2018 R1). I’m trying to request a 1 minute video stream of an earlier time (let’s say, yesterday at 12 noon) of a particular camera from the server.

I sent a streamRequest with a “Playback” signal to retrieve the playback stream from the server, followed by calling the “XPMobileSDK.playbackGoTo” to bring the stream back to the desired time. However, it seems like the video stream just stopped and nothing happens after that..

How do I request a specified duration video stream of an earlier time from the mobile server?

Any help is greatly appreciated, thanks.

Hi Clinton,

By default when you request playback video stream, server positions it somewhere (depends on other parameters of the requests, by default at the DB end if I remember well) and just stops .

After that you make “Go To Time” command. Server moves to this position, most probably push to the client a frame and again stops.

If you want to start playback from this position, you have to fire command to the server.

“playbackSpeed” is a good candidate. It is used for starting and stopping the playback, depends on the speed value. For example:

0 - stop;

1 - start playback in forward direction with normal speed;

-0.5 - start playback in backward direction with twice lower speed;

Unfortunately server doesn’t support automatic stop of playback at some time nor the repeat option (e.g. Play A..B and Repeat A..B)

Hi Petar, thank you for the clarification, I finally understood how it works now. :slight_smile: