Class: VideoConnection

VideoConnection()

new VideoConnection()

Video connection. This class manages an established connection and handles receiving and parsing frames via the ItemHeaderParser class. Do not create instances of that class directly. Instead call XPMobileSDK.requestStream to first prepare the connection to the camera. In the callback you will receive instance of the prepared VideoConnection object ready to be opened. Then set an observer object to receive frames, events and etc and just open the connection. Video connections cannot be reused. Once closed it cannot be reopened.

VideoConnection()

new VideoConnection()

Properties:
Name Type Description
videoId String GUID of the VideoConnection
cameraId String GUID of the camera
signalType String Type of the signal - Live, Playback or Upload.
isReusable Boolean Flag indicating whether the connection reusable or not
isPush Boolean Flag indicating whether it is a push connection
supportsPTZ Boolean Flag indicating whether PTZ is supported
supportsPTZPresets Boolean Flag indicating whether it PTZ Presets are supported
supportsPlayback Boolean Flag indicating whether Playback is supported
supportsExport Boolean Flag indicating whether Exports are supported
request Object VideoConnection request data
response Object VideoConnection response data
open function Opens the connection to start receiving frames.
restart function Restarts the connection.
close function Closes the connection.
addObserver function Adds an observer for the video connection.
removeObserver function Removes an observer for the video connection.
resetCommunication function Resets communication
destroy function Class destructor.