We are developing an integrated mobile app for surveillance and other communication system controls, and we are testing the Protocol integration for milestone mobile server, we came across the following questions:
1. What is the returning data format for Native param input for RequestStream command?
2. What is the returned data and mechanism for “Push” MethodType? I just keep receiving request status 3 (in progress) with no data.
3. Any sample for Video Push function?
Is it possible to have sample implementation for the mentioned 3 function? Thanks!
- It returns video frames as they are written in the Recording Server (RS) DB.
They are packet in generic byte headers (See “The GenericByteData format” in the MIP Documentation) and in most cases is whole GOP.
Parsing and decoding those is not subject of any of the samples.
On the “RequestSteram” message you will receive only response if the stream has been started.
If stream start is correct you can find in the response “VIdeoId” or “StreamId” parameter.
With this parameter you can construct allies of http address where video could be found.
Something like http://:/XProtectMobile/VIdeo/<video_id>.
Depending on MethodType Mobile server will behave differently when sending frames on already created video channel (with particular alias).
In “Pull” client will receive only one frame on every http request on this address.
In “Push”, server will keep response of the client http request open and will push many frames in it.
Sample for that (“Pull” mode only) is available in MIP SDK samples.
VideoPush is “another beast”. It is intended for pushing video from client to Mobile server (resp RS).
Sample for that is unfortunately unavailable.