Software
Development
Kit
Table of Contents
Introduction ................................................................................................................1
Overview ....................................................................................................................2
Properties list .............................................................................................................3
Method list..................................................................................................................4
Event list.....................................................................................................................8
Introduction
This documentation lists the functionality included in TVSIP API and explains how the components
can be integrated and used in containing applications.
Overview
TVSIP SDK is a components-library whose main purpose is to play media streams originating from
DVR / IPCAM / NVR products.
Networked device means DVR / IPCAM / NVR at network connection in this document.
TVSIP SDK supports the following main features:
1.
2.
Camera Control
3.
Event trigger
5.
Camera PTZ
4.
Two-way audio
Properties list
Property
sSaveVideoFileFolder
Description
String, Max-Size: 256, readable/writable, runtime changeable
Path name for saving streaming data on PC-side local storage
Default: c:\recording\
runtime changeable, new value active for next new clips
sSaveCaptureFileFolder
sSearchFileFolder
lCutFileSec
lAutoReConnectGapSec
Method list
Method
Description
System
bool GetSDKVersion(
string *version)
bool GetDeviceModel(
string *version)
Bool SetVideoWindow(
HWND hwnd)
Bool SetVideoSize(
int Width,
int Height)
RET_CODE Connect(
string ipAddress,
string user,
string password,
short port)
bool StartLive(
int chanNum,
bool enableVideo,
bool enableAudio);
bool StopLive(
int chanNum)
bool StartRemoteFile(
int chanNum,
string fileName,
DateTime startTime,
DateTime endTime,
Bool enableDecode,
Bool enabeSavefile)
bool StartRecord(void)
bool StopRecord(void)
bool StartLocalFile(
Int chanNum,
DateTime startTime)
bool PlaybackCtl(
PlayControl mode,
Int pos)
Audio interface
bool StartTalk(int chanNum)
bool StopTalk()
bool AuidoInVolumeControl(
int value)
bool AuidoOutVolumeControl(
int value)
Camera Control
bool CameraSetImageCtl(
ImageCtl mode,
int value)
bool CameraGetImageCtl(
int mode,
int *value)
bool CameraPTZ(
PtzCommand command,
int speed)
IrisClose,
PanActionStop,
TiltActionStop,
PanTiltActionStop,
ZoomActionStop,
ZoomInStop,
ZoomOutStop,
FocusActionStop,
FocusNearStop,
FocusFarStop,
IrisActionStop,
IrisOpenStop,
IrisCloseStop
[speed] range from 1 to 5
Frame Capture
bool Snapshot(string fileName)
Event list
Event
Description
Alarm
GPIO Alarm Input /
Output
Manually Trigger.
Video loss
Motion Alarm
Motion detection
HDD fail
Fan fail
Playback
Playback position