How to get each frame time via XPMobileSDK.js

Hi Milestone Team,

The web application uses XPMobileSDK.js to show the video in the web client. Is it possible to get the frame time of each video frames?

Thanks,

Allen

Hi Allen,

No it is not possible to get video frame time using the XPMobileSDK.js . The SDK main purpose is to give you all the tools needed to open a video stream. If you want to show video streams we have Web Components that can do this for you located in the Lib\modules folder.

If you open XPMobileSDK\Lib\modules\VideoStream\js\stream.js on receivedFragment method the fragment parameter will contain the timestamp in of its members.

The sample how can decode video frame can be found here:

https://doc.developer.milestonesys.com/mipsdkmobile/reference/protocols/mobile_decoding.html

Here is the full documentary of the video frame content where the second parameter is the times of the frame:

https://doc.developer.milestonesys.com/mipsdkmobile/reference/protocols/mobile_video.html

Best regards

Teodor

How to find frame information on Milestone XPMobileSDK