public void LoadVideos() { try { var videoServer = new AppServerMgrProxy(); //IAppServer iappServer = videoServer.CreateAppServer("","") //IMediaMgr mediaMgr = videoServer videoServer.SetHost("10.0.2.53"); videoServer.SetUserCredentials("administrator", "adminK2", "", false); if (videoServer.Connect()) { Console.WriteLine("CONNECTED!!"); } else { Console.WriteLine("TOTAL FAIL =/"); } videoServer.Disconnect(); } catch (Exception e) { Console.WriteLine(e); } }
public void EndServerSession() { icontroller.CloseChannel(); iappServer.CloseConnection(); videoServer.Disconnect(); }