二次开发使用 WEB32网页调用接口说明V2.0 下载本文

WEB3.2控件二次开发接口说明文档

编写时间:2017/05/03

1

1 修订记录

时间 2017.05.03 修订内容 二次开发接口文档,主要用于提供二次开发使用 修订人 X 2

目录

WEB3.2控件接口说明文档 ........................................................................................................... 1 1 接口方法: ............................................................................................................................... 7

1.1 插件初始化(晓慧) ....................................................................................................... 7

1.1.1 SetInitParams .................................................................. 错误!未定义书签。 1.1.2 AddEventListener ........................................................... 错误!未定义书签。 1.1.3 SetTranslateString ........................................................... 错误!未定义书签。 1.1.4 SetOEM ........................................................................... 错误!未定义书签。 1.2 登陆/登出(晓慧) ................................................................... 错误!未定义书签。

1.2.1 LoginDeviceEx ............................................................... 错误!未定义书签。 1.2.2 LogoutDevice .................................................................. 错误!未定义书签。 1.3 窗口相关(晓慧) .................................................................... 错误!未定义书签。

1.3.1 SetWinBindedChannel/ SetWinBindedChannelEx ......... 错误!未定义书签。 1.3.2 EnableVideoOPFunc ....................................................... 错误!未定义书签。 1.3.3 GetWndState ................................................................... 错误!未定义书签。 1.3.4 SetWndState .................................................................... 错误!未定义书签。 1.3.5 SwitchToFullScreen/ OnFullScreenClk .......................... 错误!未定义书签。 1.3.6 SetSelPlayer .................................................................... 错误!未定义书签。 1.4 监视预览(振兴) .................................................................................................... 12

1.4.1 ConnectRealVideo/ ConnectRealVideoEx ...................................................... 12 1.4.2 ConnectAllChannelEx ..................................................................................... 13 1.4.3 DisConnectRealVideo ..................................................................................... 13 1.4.4 DisConnectAllChannel ................................................................................... 13 1.4.5 ConnectWanMultiRealVideo ........................................... 错误!未定义书签。 1.4.6 StartPreviewEx ................................................................ 错误!未定义书签。 1.4.7 StopPreview .................................................................... 错误!未定义书签。 1.4.8 VerticalSyncEnable ......................................................... 错误!未定义书签。 1.4.9 GetColor .......................................................................... 错误!未定义书签。 1.4.10 SetColor .......................................................................... 错误!未定义书签。 1.4.11 SetPicQuality................................................................... 错误!未定义书签。 1.4.12 SetAdjustFluency ............................................................ 错误!未定义书签。 1.5 语音对讲(振兴) .................................................................... 错误!未定义书签。

1.5.1 ControlTalking/ControlTalkingEx ................................... 错误!未定义书签。 1.6 录像查询(晓晖) .................................................................................................... 14

1.6.1 SwitchMonth ................................................................................................... 14 1.6.2 SwitchDay ....................................................................................................... 15 1.6.3 QueryRecordInfoByTime/ QueryRecordInfoByTimeEx ................................ 15 1.6.4 QueryGroupRecordInfo .................................................................................. 16 1.6.5 StopQueryRecordInfo ..................................................................................... 16 1.6.6 SetSearchBeginTime ....................................................... 错误!未定义书签。 1.7 网络回放(晓晖) .................................................................................................... 17

1.7.1 PlayBack(N8未使用) ................................................................................ 17 1.7.2 PlayBackByType ............................................................................................. 17

3

1.7.3 StopPlayBack .................................................................................................. 18 1.7.4 CloseAllNetPlayback ...................................................................................... 18 1.7.5 StopAllPlayBack(N8未使用) ................................................................... 19 1.7.6 PlayBackByTime/ PlayBackByTimeEx .......................................................... 19 1.7.7 PlayBackByRecordFile/PlayBackByRecordFileEx ........................................ 19 1.7.8 GetPlayTime(N8未使用) .......................................................................... 20 1.7.9 SetRecordType ................................................................ 错误!未定义书签。 1.7.10 GetCurPlayFileInfo ......................................................................................... 20 1.8 切片回放 .................................................................................... 错误!未定义书签。

1.8.1 PlayBackByTimeSec ....................................................... 错误!未定义书签。 1.9 水印校验 .................................................................................................................... 33

1.9.1 StartVerifyWatermark ...................................................................................... 33 1.9.2 StopVerifyWatermark ...................................................................................... 33 1.10 同步回放 .................................................................................... 错误!未定义书签。

1.10.1 SyncPlayBackByType ..................................................... 错误!未定义书签。 1.10.2 SyncPlayBackByTime..................................................... 错误!未定义书签。 1.10.3 SyncPlayBackByRecordFile ........................................... 错误!未定义书签。 1.11 回放控制 .................................................................................................................... 23

1.11.1 PausePlayBack ................................................................................................ 23 1.11.2 SpeedPlayBack ................................................................................................ 24 1.11.3 SetPlayDirection/SetPlayBackDirection ......................................................... 24 1.12 本地回放(晓晖) .................................................................................................... 25

1.12.1 SelectLocalFile ................................................................................................ 25 1.12.2 QuickOperation ............................................................................................... 25 1.12.3 SpeedLocalPlay ............................................................................................... 25 1.12.4 PauseLocalPlay ............................................................................................... 26 1.12.5 StopLocalPlay ................................................................................................. 26 1.12.6 PlayLocalFileOneByOne ................................................................................ 27 1.12.7 PlayLocalFileBackOne.................................................................................... 27 1.12.8 FastLocalPlay .................................................................................................. 28 1.12.9 SlowLocalPlay ................................................................................................ 28 1.12.10 SetLocalPlayTime ................................................................................... 28 1.12.11 PlayLocalPlay ................................................................................................. 29 1.13 音频控制(振兴) .................................................................................................... 29

1.13.1 PlayOpenSound/PlayOpenSoundEx ............................................................... 29 1.13.2 PlayStopSound/PlayStopSoundEx .................................................................. 30 1.13.3 PlaySetVolume ................................................................................................ 30 1.13.4 OpenAlarmSound ............................................................................................ 31 1.13.5 StopAlarmSound ............................................................................................. 31 1.13.6 StartAudioRecord ............................................................................................ 32 1.13.7 StopAudioRecord ............................................................................................ 32 1.14 网络下载(程浩) .................................................................................................... 21

1.14.1 DownloadRecordByFile/ DownloadRecordByFileEx .................................... 21 1.14.2 DownloadRecordByTime/ DownloadRecordByTimeEx ................................ 21

4