Web
Build an integration to the Mobile Server in JavaScript
The MIP SDK Mobile supports JavaScript for Web platform development.
Supported features
The MIP SDK Mobile provides full support of the existing Mobile and Web Client functionality.
Learn about the Mobile Server protocol here.
Connection object
Provides functionality to connect to a Milestone Mobile Server and to communicate with it.
- Keeps communication alive
- Exposes commands
- Enables multiple simultaneous connections
Common command
Generic command that follows Mobile Server Protocol command structure. This command enables you to send commands to the Milestone Mobile Server that are not yet implemented in the MIP SDK Mobile.
Signature:
void SendCommand(commandName, requestParams, successCallback, failCallback)
Params:
commandName – string value, representing Viking protocol command
requestParams – platform specific object
Callbacks signatures:
void successCallback(responseParams)
void failCallback(responseParams)
Viking commands
All commands exposed by the Viking protocol.
Signature:
void VikingName(vikingNameParams, successCallback, failCallback)
Command groups:
CONNECTION
- Connect
- LogIn
- Disconnect
- LiveMessage
VIDEO
- RequestStream
- ChangeStream
- CloseStream
VIEWS
- GetViews
Handling video
VideoFactory
IVideo CreateVideo(requestParams, responseParams)
High-level API
CONNECTION
- LiveVideo RequestLiveVideo()
- PlaybackVideo RequestPlaybackVideo()
HIGH-LEVEL VIDEO OBJECT
- Ctor LiveVideo(connection, requestParams, responseParams)
- Ctor PlaybackVideo(connection, requestParams, responseParams, connection)
VIDEO OBJECT METHODS
- Rescale(width, height)
- Crop(left, top, right, bottom)
PLAYBACK VIDEO OBJECT METODS
- ChangePlaybackSpeed (speed) // positive/negative for forward/backward
- GotoDbPosition (seektype) // dbStart, dbEnd, prevNext, ...
- GoToTime (seektype, time) // time, timeorbefore, timeorafter