C# 클래스 CgwMonitorManage.Tiandy.TiandySdkClient

파일 보기 프로젝트 열기: eSDK/esdk_Cgw 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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资源

비공개 메소드들

메소드 설명
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

메소드 상세

ControlPtz() 공개 메소드

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

Load() 공개 메소드

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

MakeIFrame() 공개 메소드

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

SetDataCallBackFunc() 공개 메소드

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

StartReceiveVideo() 공개 메소드

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

StopReceiveVideo() 공개 메소드

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

Unload() 공개 메소드

注销SDK资源
public Unload ( ) : bool
리턴 bool