Property | Type | Description | |
---|---|---|---|
CallbackFunc | void | ||
MessCallBack | void | ||
client_player_set_lib | bool | ||
client_sdk_cleanup | bool | ||
client_sdk_login2_by_id | int | ||
client_sdk_make_key_frame | bool | ||
client_sdk_ptz_control | bool | ||
client_sdk_ptz_control_ex | bool | ||
client_sdk_realplay2_ex | int | ||
client_sdk_set_fd_udata | bool | ||
client_sdk_set_h264_callback | bool | ||
client_sdk_set_local_id | bool | ||
client_sdk_set_mess_callback | bool | ||
client_sdk_set_mess_callback_ex | bool | ||
client_sdk_set_player_buf | bool | ||
client_sdk_set_realdata_callback | bool | ||
client_sdk_startup | bool | ||
client_sdk_stop_realplay | bool | ||
client_sdk_throw_b_frame | bool |
Method | Description | |
---|---|---|
ControlPtz ( int playfd, |
PTZ(Pan/Tilt/Zoom)控制,该接口需要在预览模式下使用
|
|
Load ( string localId ) : bool |
初始化天地伟业SDK客户端
|
|
MakeIFrame ( string hostNo, int channel, |
重发I帧
|
|
SetDataCallBackFunc ( RealDataCallBackFunc dataCallBack ) : void |
指定码流回调函数
|
|
StartReceiveVideo ( string dev_id, |
启动实时预览
|
|
StopReceiveVideo ( int playfd ) : bool |
停止预览
|
|
Unload ( ) : bool |
注销SDK资源
|
Method | Description | |
---|---|---|
CallbackFunc ( int playfd, int datatype, byte buf, uint size, int usr ) : void |
码流回调处理,用于判断是否接收到码流,如果接收到码流,标识预览成功,否则失败
|
|
MessCallBack ( int fd, int command, string buf, int len, int usr ) : void |
消息回调函数
|
|
client_player_set_lib ( int type, string lib_name ) : bool | ||
client_sdk_cleanup ( ) : bool | ||
client_sdk_login2_by_id ( string dev_id, string username, string password, string client_sup_id, string dev_sup_id, string client_sup_ip, int client_sup_port, int module_s ) : int | ||
client_sdk_make_key_frame ( int loginfd, int ch ) : bool | ||
client_sdk_ptz_control ( int playfd, |
||
client_sdk_ptz_control_ex ( int playfd, |
||
client_sdk_realplay2_ex ( string dev_id, string username, string password, string client_sup_id, string dev_sup_id, string client_sup_ip, int client_sup_port, |
||
client_sdk_set_fd_udata ( int udata ) : bool | ||
client_sdk_set_h264_callback ( int playfd, RealDataCallBackFunc func, int usr ) : bool | ||
client_sdk_set_local_id ( string localId ) : bool | ||
client_sdk_set_mess_callback ( MessCallBackFunc func, int usr ) : bool | ||
client_sdk_set_mess_callback_ex ( int fd, MessCallBackFunc func, int usr ) : bool | ||
client_sdk_set_player_buf ( int playfd, int buf ) : bool | ||
client_sdk_set_realdata_callback ( int playfd, RealDataCallBackFunc func, int usr ) : bool | ||
client_sdk_startup ( ) : bool | ||
client_sdk_stop_realplay ( int playfd ) : bool | ||
client_sdk_throw_b_frame ( int playfd, int num ) : bool |
public ControlPtz ( int playfd, |
||
playfd | int | 预览句柄 |
ptzCommand | ||
return | bool |
public MakeIFrame ( string hostNo, int channel, |
||
hostNo | string | 主机编号 |
channel | int | 摄像头对应的主机通道 |
cameraMediaServer | ||
return | bool |
public SetDataCallBackFunc ( RealDataCallBackFunc dataCallBack ) : void | ||
dataCallBack | RealDataCallBackFunc | |
return | void |
public StartReceiveVideo ( string dev_id, |
||
dev_id | string | 主机ID |
cameraMediaServer | 设备端接入的流媒体服务器信息 | |
info | 实时播放信息 | |
return | int |
public StopReceiveVideo ( int playfd ) : bool | ||
playfd | int | 设备ID |
return | bool |