public void OpenSDK_StartRealPlayTest() { SDK_EzvizSDK.OpenSDK_InitLib(ProgParameter.strEzviz__AuthAddr, ProgParameter.strEzviz__PlatForm, ProgParameter.strEzviz__AppID); JsonRequestResult result = SDK_EzvizSDK.GetAccessToken(); string strSession; IntPtr intptrSession = IntPtr.Zero; int intLenght = 0; PictureBox pic = new PictureBox(); SDK_EzvizSDK.MsgHandler m = new SDK_EzvizSDK.MsgHandler(MsgHandler); int intResult = SDK_EzvizSDK.OpenSDK_AllocSession(m, IntPtr.Zero, ref intptrSession, ref intLenght, false, uint.MaxValue); strSession = Marshal.PtrToStringAnsi(intptrSession); intResult = SDK_EzvizSDK.OpenSDK_StartRealPlay(intptrSession, pic.Handle, "7e1c18bad66544408b38d1711552e320", ProgParameter.strEzviz_AccessToken, 0, null, ProgParameter.strEzviz__AppID, 0); Delay_Millisecond(10000); intResult = SDK_EzvizSDK.OpenSDK_StopRealPlayEx(intptrSession); Delay_Millisecond(10000); intResult = SDK_EzvizSDK.OpenSDK_FreeSession(strSession); SDK_EzvizSDK.OpenSDK_FiniLib(); Assert.AreEqual("1", strSession); }