How can I start playing video from a certain time by given timestamp when using XPMobileSDK js? Does XPMobileSDK provides any method to do that?

Hi Veselina,

Yes, you can do that in several ways. In general you have to get a playback stream and provide two other parameters when using RequestStream

or ChangeStream commands (depending on whether you want to request a new stream or change an existing one).

The parameters are:

  • SeekType with value “Time” and
  • Time with value the timestamp you want to provide.

To get a playback stream you need to set parameter SignalType to “Playback” when requesting or changing a stream.

You can check the following sample for how to request a playback stream:

[path_to_where_your_WebClient_is]\XPMobileSDK\Samples\Video\videoSample.html

After requesting a playback stream you can use the XPMobileSDK.playbackGoTo function (check it in [path_to_where_your_WebClient_is]\XPMobileSDK\XPMobileSDK.js) which is basically a wrapper of ChangeStream command providing SeekType and Time parameters for you.

I hope this helps.