C# Class CgwMonitorManage.Tiandy.TiandySdkClient

Show file Open project: eSDK/esdk_Cgw Class Usage Examples

Private Properties

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

Public Methods

Method Description
ControlPtz ( int playfd, Client_PTZ_Command ptzCommand ) : bool

PTZ(Pan/Tilt/Zoom)控制,该接口需要在预览模式下使用

Load ( string localId ) : bool

初始化天地伟业SDK客户端

MakeIFrame ( string hostNo, int channel, MediaServer cameraMediaServer ) : bool

重发I帧

SetDataCallBackFunc ( RealDataCallBackFunc dataCallBack ) : void

指定码流回调函数

StartReceiveVideo ( string dev_id, MediaServer cameraMediaServer, RealPlayInfo &info ) : int

启动实时预览

StopReceiveVideo ( int playfd ) : bool

停止预览

Unload ( ) : bool

注销SDK资源

Private Methods

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_PTZ_Command &cmd ) : bool
client_sdk_ptz_control_ex ( int playfd, Client_PTZ_Command &cmd, int _iRightLevel ) : bool
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, RealPlayInfo &info, RealDataCallBackFunc func, int usr ) : int
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

Method Details

ControlPtz() public method

PTZ(Pan/Tilt/Zoom)控制,该接口需要在预览模式下使用
public ControlPtz ( int playfd, Client_PTZ_Command ptzCommand ) : bool
playfd int 预览句柄
ptzCommand Client_PTZ_Command
return bool

Load() public method

初始化天地伟业SDK客户端
public Load ( string localId ) : bool
localId string 客户端本地ID,必须唯一
return bool

MakeIFrame() public method

重发I帧
public MakeIFrame ( string hostNo, int channel, MediaServer cameraMediaServer ) : bool
hostNo string 主机编号
channel int 摄像头对应的主机通道
cameraMediaServer MediaServer
return bool

SetDataCallBackFunc() public method

指定码流回调函数
public SetDataCallBackFunc ( RealDataCallBackFunc dataCallBack ) : void
dataCallBack RealDataCallBackFunc
return void

StartReceiveVideo() public method

启动实时预览
public StartReceiveVideo ( string dev_id, MediaServer cameraMediaServer, RealPlayInfo &info ) : int
dev_id string 主机ID
cameraMediaServer MediaServer 设备端接入的流媒体服务器信息
info RealPlayInfo 实时播放信息
return int

StopReceiveVideo() public method

停止预览
public StopReceiveVideo ( int playfd ) : bool
playfd int 设备ID
return bool

Unload() public method

注销SDK资源
public Unload ( ) : bool
return bool