private void Frn_VideoPlayGroupControl_Basic_Load(object sender, EventArgs e) { VideoPlayControl.ProgParameter.strEzviz__AppID = "5b97c1d157474f96b8d4c75b936a0057"; VideoPlayControl.ProgParameter.strEzviz_AppSecret = "4318d0cc4c43ca156052ba688bc9006a"; videoPlayGroupControls_Basic1.bolAutoPlayVideo = true; videoPlayGroupControls_Basic1.videoPlaySet.VideoRecordEnable = true; videoPlayGroupControls_Basic1.videoPlaySet.VideoMonitorEnable = true; //videoPlayGroupControls_Basic1.videoPlaySet.VideoRecordFilePath = "C:\\SHIKE_Video\\4603\\20170925094530"; //videoPlayGroupControls_Basic1.bolDisplaySDKEvent = true; //videoPlayGroupControls_Basic1.bolDisPlaySDKState = true; //videoPlayGroupControls_Basic1.videoPlaySet.PreSetPosi = 13; SDKState.CloundSee_SDKInit(); SDKState.Ezviz_SDKInit(); SDKState.SKVideoSDKInit("hdc1", "192.168.2.19"); SetTestData_ZWVideoAndSKTalk(); }
private void Frm_VideoPlayGroupControls_PTZAndTalk_Load(object sender, EventArgs e) { VideoPlayControl.ProgParameter.strEzviz__AppID = "5b97c1d157474f96b8d4c75b936a0057"; VideoPlayControl.ProgParameter.strEzviz_AppSecret = "4318d0cc4c43ca156052ba688bc9006a"; SDKState.Ezviz_SDKInit(); //SDKState.XMSDK_Init(); //videoPlayGroupControls_PTZAndTalk1.bolAutoPlayVideo = true; //videoPlayGroupControls_PTZAndTalk1.videoPlaySet.VideoRecordEnable = true; //videoPlayGroupControls_PTZAndTalk1.videoPlaySet.VideoMonitorEnable = true; //videoPlayGroupControls_Basic1.videoPlaySet.VideoRecordFilePath = "C:\\SHIKE_Video\\4603\\20170925094530"; //videoPlayGroupControls_Basic1.bolDisplaySDKEvent = true; //videoPlayGroupControls_Basic1.bolDisPlaySDKState = true; //videoPlayGroupControls_Basic1.videoPlaySet.PreSetPosi = 13; //SDKState.CloundSee_SDKInit(); //SDKState.Ezviz_SDKInit(); //SDKState.SKVideoSDKInit(); //SDKState.HuaMai_Init(); SDKState.XMSDK_Init(); //SDKState.HikDVRSDK_Init(); //SDKState.BlueSkySDK_Init(); SDKState.SKVideoSDKInit("50023370", "192.168.2.19", 47624,47724, 47824, 47924); //HuaMaiVideo_TestData(); //SDKState.SKNVideoSDK_Init("192.168.2.19", 48624, "xhc1", "", "C:\\SHIKE_Video"); //SDKState.DHVideoSDK_Init(); //SDKState.SKVideoSDKInit("hdc", "121.41.87.203"); Dictionary<string, VideoInfo> dicVideoInfos = new Dictionary<string, VideoInfo>(); //VideoInfo v = TestDataSource.TestDataSource.GetSKDVSData1(); //dicVideoInfos[v.DVSNumber] = v; VideoInfo v = TestDataSource.XMDataSource.GetData3(); dicVideoInfos[v.DVSNumber] = v; videoPlayGroupControls_PTZAndTalk1.bolPreViewPwdVerify = false; videoPlayGroupControls_PTZAndTalk1.PreViewPwdVerifyEvent += PreViewPwdVerify; videoPlayGroupControls_PTZAndTalk1.videoPlaySet.VideoRecordEnable = true; videoPlayGroupControls_PTZAndTalk1.videoPlaySet.VideoRecordFilePath = Application.StartupPath + "\\TestVideo\\"; videoPlayGroupControls_PTZAndTalk1.videoPlaySet.VideoRecordFilePath_Server = "\\0712\\" + DateTime.Now.ToString("yyyyMMddHHmmss"); //videoPlayGroupControls_PTZAndTalk1.SetPTZVisible(false); videoPlayGroupControls_PTZAndTalk1.Init_VideoInfoSet(dicVideoInfos); videoPlayGroupControls_PTZAndTalk1.StartTalkingEvent += VideoPlayGroupControls_PTZAndTalk1_StartTalkingEvent; videoPlayGroupControls_PTZAndTalk1.VideoPlay("", 1); videoPlayGroupControls_PTZAndTalk1.VideoPlayCallbackEvent += VideoPlayGroupControls_PTZAndTalk1_VideoPlayCallbackEvent; videoPlayGroupControls_PTZAndTalk1.CurrentTalkSetting.TalkRecordEnable = true; videoPlayGroupControls_PTZAndTalk1.CurrentTalkSetting.TalkRecordPath_Server = "Audio/0712/" + DateTime.Now.ToString("yyyyMMddHHmmss"); }
public bool VideoPlay() { strRealSavePath = ""; CommonMethod.LogWrite.WriteEventLog("EzvizLog", "VidePlay1_" + CurrentVideoInfo.DVSNumber + CurrentVideoInfo.DVSAddress, ProgParameter.ProgLogAddress); if (intptrSessionID != IntPtr.Zero) { //句柄不为空,先进行视频 VideoClose(); } CommonMethod.LogWrite.WriteEventLog("EzvizLog", "VidePlay2_" + CurrentVideoInfo.DVSNumber + CurrentVideoInfo.DVSAddress, ProgParameter.ProgLogAddress); bool bolResult = false; if (ProgParameter.Ezviz_VideoPlayEnvironmentReset) { SDKState.Ezviz_SDKInit(); } Ezviz_VideoPlay(); //萤石云设备 return(bolResult); }