================================================================================ GeViScope_SDK.pdf - Pages 41 to 50 ================================================================================ ──────────────────────────────────────────────────────────────────────────────── Page 41 ──────────────────────────────────────────────────────────────────────────────── Examplesgroupedbyprogrammingtasks ConnecttoanddisconnectfromaGeViScopeserver l LiveStream(CodeGearC++Builder6and2009) l SimpleClient(CodeGearDelphi7,2005and2009) l GSCLiveStream(MicrosoftVisualStudio2005,C++,MFC) l VS2008CPP_SimpleClient(MicrosoftVisualStudio2008,C++,MFC) l VS2008CPP_ActionsAndEvents(MicrosoftVisualStudio2008,C++,MFC) l VS2008NET_SimpleClient(MicrosoftVisualStudio2008,C#) l VS2008NET_ActionsAndEvents(MicrosoftVisualStudio2008,C#) l VS2008WPF_SimpleClient(MicrosoftVisualStudio2008,C#,WPF) l VS2010NET_SimpleClient(MicrosoftVisualStudio2010,C#) l VS2010NET_ActionsAndEvents(MicrosoftVisualStudio2010,C#) l VS2010WPF_SimpleClient(MicrosoftVisualStudio2010,C#,WPF) Enumerateexistingmediachannelsandeventtypesfroma GeViScopeserver l LiveStream(CodeGearC++Builder6and2009) l SimpleClient(CodeGearDelphi7,2005and2009) l GSCLiveStream(MicrosoftVisualStudio2005,C++,MFC) l VS2008CPP_SimpleClient(MicrosoftVisualStudio2008,C++,MFC) l VS2008CPP_ActionsAndEvents(MicrosoftVisualStudio2008,C++,MFC) l VS2008NET_GscRegEdit(MicrosoftVisualStudio2008,C#) l VS2008NET_GscRegistryBasics(MicrosoftVisualStudio2008,C#) l VS2008NET_SimpleClient(MicrosoftVisualStudio2008,C#) l VS2010CPP_ConfigReader(MicrosoftVisualStudio2010,C++) l VS2010NET_SimpleClient(MicrosoftVisualStudio2010,C#) l VS2010NET_ActionsAndEvents(MicrosoftVisualStudio2010,C#) l VS2010NET_GscRegEdit(MicrosoftVisualStudio2010,C#) l VS2010NET_GscRegistryBasics(MicrosoftVisualStudio2010,C#) l VS2010WPF_SimpleClient(MicrosoftVisualStudio2010,C#,WPF) DisplayliveandrecordedmediawiththeMediaPlayerinter- face l LiveStream(CodeGearC++Builder6and2009) l SimpleClient(CodeGearDelphi7,2005and2009) l GSCLiveStream(MicrosoftVisualStudio2005,C++,MFC) l VS2008CPP_SimpleClient(MicrosoftVisualStudio2008,C++,MFC) l VS2008CPP_ActionsAndEvents(MicrosoftVisualStudio2008,C++,MFC) l VS2008NET_SimpleClient(MicrosoftVisualStudio2008,C#) l VS2008WPF_SimpleClient(MicrosoftVisualStudio2008,C#,WPF) l VS2010NET_SimpleClient(MicrosoftVisualStudio2010,C#) l VS2010WPF_SimpleClient(MicrosoftVisualStudio2010,C#,WPF) DisplayrecordedeventmediawiththeMediaPlayerinterface l VS2008CPP_ActionsAndEvents(MicrosoftVisualStudio2008,C++,MFC) l VS2008NET_ActionsAndEvents(MicrosoftVisualStudio2008,C#) l VS2010NET_ActionsAndEvents(MicrosoftVisualStudio2010,C#) ──────────────────────────────────────────────────────────────────────────────── Page 42 ──────────────────────────────────────────────────────────────────────────────── HandlingactionsandPLCnotifications l GSCActions(CodeGearC++Builder6and2009) l SimpleClient(CodeGearDelphi7,2005and2009) l ResourceStateMonitor(Delphi2009) l VS2008CPP_ActionsAndEvents(MicrosoftVisualStudio2008,C++,MFC) l VS2008NET_ActionsAndEvents(MicrosoftVisualStudio2008,C#) l VS2010CPP_ControlBlockingFilters(MicrosoftVisualStudio2010,C++) l VS2010NET_ActionsAndEvents(MicrosoftVisualStudio2010,C#) Handlingevents l LiveStream(CodeGearC++Builder6and2009) l GSCLiveStream(MicrosoftVisualStudio2005,C++,MFC) l VS2008CPP_ActionsAndEvents(MicrosoftVisualStudio2008,C++,MFC) l VS2008NET_ActionsAndEvents(MicrosoftVisualStudio2008,C#) l VS2010NET_ActionsAndEvents(MicrosoftVisualStudio2010,C#) Creatingbackups l Backup(CodeGearDelphi7and2009) Synchronizeddisplayofmorethanonemediachannels l SynchPlayback(CodeGearC++Builder6and2009) CustomdrawinviewersofMediaPlayerinterface l SynchPlayback(CodeGearC++Builder6and2009) l VS2008CPP_SimpleClient(MicrosoftVisualStudio2008,C++,MFC) l VS2008NET_SimpleClient(MicrosoftVisualStudio2008,C#) l VS2010NET_SimpleClient(MicrosoftVisualStudio2010,C#) Exportpicturedata l MediaPlayerExport(CodeGearDelphi7and2009) l MPEGExport(CodeGearDelphi7and2009) l VS2008NET_MediaPlayerExport(MicrosoftVisualStudio2008,C#) l VS2010NET_MediaPlayerExport(MicrosoftVisualStudio2010,C#) ControlPTZcams l Telecontrol(CodeGearDelphi7and2009) Fetchauserblockinglist fromtheserver l UserBlockingList(CodeGearC++Builder6and2009) Decompressliveandrecordedmediawiththeoffscreen viewer l OffscreenViewer(CodeGearDelphi7and2009) l VS2008CPP_OffscreenViewer(MicrosoftVisualStudio2008,C++,MFC) ──────────────────────────────────────────────────────────────────────────────── Page 43 ──────────────────────────────────────────────────────────────────────────────── l VS2008CPP_OffscreenViewer_Console(MicrosoftVisualStudio2008,C++) l VS2008NET_OffscreenViewer(MicrosoftVisualStudio2008,C#) l VS2010NET_OffscreenViewer(MicrosoftVisualStudio2010,C#) DecompressrawlivemediabyusingtheDBI l VS2008CPP_RawLiveStreamDecompress(MicrosoftVisualStudio2008,C++, MFC) l VS2008CPP_RawLiveStreamDecompress_Console(MicrosoftVisualStudio2008, C++) Createageneralserviceapplication l WindowsService(CodeGearC++Builder6and2009) l VS2008CPP_ServiceFrameworkDemo(MicrosoftVisualStudio2008,C++) l VS2008NET_ServiceFrameworkDemo(MicrosoftVisualStudio2008,C#) l VS2010NET_ServiceFrameworkDemo(MicrosoftVisualStudio2010,C#) Full-duplexaudiocommunicationbetweenGeViScopecom- ponents TheAudioBackChannelGeViScopeServerPlugin(VisualStudio2010)isanexamplefora GeViScopeServerplugin.Itrealizesafull-duplexaudiocommunicationbetweendifferent GeViScopecomponents.ThefullscopeofoperationcanbefoundinthedocumentAudio BackChannel(ABC)Plugindocumentation. SimulatemediachannelsinGeViScopeservers TheMCS(MediaChannelSimulator)GeViScopeServerPlugin(CodeGearC++Builder6) isanotherexampleforaGeViScopeServerplugin.Itshowshowtochannelmediadata insidetheGeViScopesystemwithoutusingspecialvideohardware.Inadditionthehandling ofactionsinsideaserverpluginisdemonstrated.Thefullscopeofoperationcanbefoundin thedocumentMCSDocumentation. SimulateascreensaverasaGeviScopeServerPlugin TheDelphiScreenSaverPluginGeViScopeServerPlugin(CodeGearDelphi7)isanother exampletodemonstratechannelingmediaintoaGeViScopeServerwiththehelpofa ServerPlugin. Provideacustomizeddatafilter dialoginGSCView GSCViewoffersthepossibilitytointegratecustomizeddatafilterdialogs.Datafilterdialogs areusedtosearchandfiltervideofootagebyadditionaleventdata.Theycanbecustomized tothedifferentbusinessenvironmentsinwhichGeViScopeisused.Detailedinformation canbefoundinthedocumentGSCViewdatafilterplugins. Thefollowingexamplesdemonstratehowtocreatecustomizeddatafilterdialogs: l SimpleGSCViewDataFilter(CodeGearDelphi7and2009) l GSCViewDataFilter(CodeGearDelphi7and2009) l VS2008CPP_SimpleGSCViewDataFilter(MicrosoftVisualStudio2008,C++,MFC) PresentingGEUTEBRÜCKBackupFiles(GBF) ──────────────────────────────────────────────────────────────────────────────── Page 44 ──────────────────────────────────────────────────────────────────────────────── l VS2008CPP_SimpleGBFViewer(MicrosoftVisualStudio2008,C++,MFC) l SimpleGBFViewer(CodeGearDelphi2009) l VS2008NET_SimpleGBFViewer(MicrosoftVisualStudio2008,C#) Monitorthestateofmediachannels(cameras) l ResourceStateMonitor(CodeGearDelphi2009) Examplesgroupedbydevelopmentplatforms CodeGearC++Builder6and2009© l LiveStream ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsandeventtypesfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Handlingevents l GSCActions ConnecttoanddisconnectfromaGeViScopeserver Handlingactions l SynchPlayback ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsandeventtypesfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Handlingevents Synchronizeddisplayofmorethanonemediachannels l UserBlockingList ConnecttoanddisconnectfromaGeViScopeserver Fetchauserblockinglistfromtheserver l WindowsService WindowsService(CodeGearC++Builder6and2009) l TheMCS(MediaChannelSimulator)GeViScopeServerPluginisanotherexample foraGeViScopeServerplugin.ItshowshowtochannelmediadatainsidetheGeViS- copesystemwithoutusingspecialvideohardware.Inadditionthehandlingof actionsinsideaserverpluginisdemonstrated.Thefullscopeofoperationcanbe foundinthedocumentMCSDocumentation. CodeGearDelphi7,2005und2009© l SimpleClient ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsandeventtypesfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface l Backup ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Creatingbackups l MediaPlayerExport ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Exportpicturedata l MPEGExport ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver ──────────────────────────────────────────────────────────────────────────────── Page 45 ──────────────────────────────────────────────────────────────────────────────── Exportpicturedata l Telecontrol ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsandeventtypesfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Handlingactions ControlPTZcams l OffscreenViewer ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Decompressliveandrecordedmedia Customdraw l TheSimpleGSCViewDataFilterandGSCViewDataFilterexampleareexamplesfor customizeddatafilterdialogsofGSCView.Detailedinformationcanbefoundinthe documentGSCViewdatafilterplugins. l SimpleGBFViewer(onlyDelphi2009) OpenandcloseaGEUTEBRÜCKBackupFiles(GBF) enumerateexistingmediachannelsintheGBFfile DisplaymediawiththeMediaPlayerinterface l ResourceStateMonitor(onlyDelphi2009) ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver monitorthestateofmediachannels(cameras) Handlingactions MicrosoftVisualStudio2005,C++,MFC© l GSCLiveStream ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface MicrosoftVisualStudio2005,C++,CLI© l TheVSIPCamPluginGeViScopeServerPluginisanexampletoshowhowsimpleit istochannelsomepicturesfromanIPcamintoaGeViScopeserver MicrosoftVisualStudio2008,C++,MFC© l VS2008CPP_SimpleClient ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Customdraw l VS2008CPP_OffscreenViewer ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Decompressliveandrecordedmedia Customdraw l VS2008CPP_ActionsAndEvents ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsandeventtypesfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Handlingactions ──────────────────────────────────────────────────────────────────────────────── Page 46 ──────────────────────────────────────────────────────────────────────────────── Handlingevents DisplayrecordedeventmediawiththeMediaPlayerinterface l VS2008CPP_SimpleGBFViewer OpenandcloseaGEUTEBRÜCKBackupFiles(GBF) enumerateexistingmediachannelsintheGBFfile DisplaymediawiththeMediaPlayerinterface l TheVS2008CPP_SimpleGSCViewDataFilterexampleisanexampleforacus- tomizeddatafilterdialogofGSCView.Detailedinformationcanbefoundinthedoc- umentGSCViewdatafilterplugins. l VS2008CPP_RawLiveStreamDecompress_Console ReceivinglivestreamsbyusingtheDBI DecompressingframesbymeansofthedecompressorobjectoftheGscMe- diaPlayer-DLL l VS2008CPP_OffscreenViewer_Console UsingtheOffscreenViewertoreceivealivestreaminaconsoleapplication OffscreenViewerprovidesadecompressedimageinacallback OnlythepictureID(PicID)oftheimagewillbedisplayedintheconsole l VS2008CPP_RawLiveStreamDecompress_Console ReceivinglivestreamsbyusingtheDBI DecompressingframesbymeansofthedecompressorobjectoftheGscMe- diaPlayer-DLL l VS2008CPP_OffscreenViewer_Console UsingtheOffscreenViewertoreceivealivestreaminaconsoleapplication OffscreenViewerprovidesadecompressedimageinacallback OnlythepictureID(PicID)oftheimagewillbedisplayedintheconsole MicrosoftActiveX© l GscViewer(ActiveXControl) EncapsulatingofGeViScopefunctionalityintoanActiveXcontrol l ActiveX_DOTNETClient InvocationoftheGscViewerActiveXcontrolfromC# l ActiveX_HTML_Page InvocationoftheGscViewerActiveXcontrolfrominsideawebpage(html) l ActiveX_VB6Client(deprecated) InvocationoftheGscViewerActiveXcontrolfrominsideaVB6application l ActiveX_VB6MultiClient(deprecated) InvocationofseveralGscViewerActiveXcontrolfrominsideaVB6application MicrosoftVisualStudio2008,C#© l VS2008NET_SimpleClient ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Customdraw l VS2008NET_ActionsAndEvents ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsandeventtypesfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Handlingactions Handlingevents DisplayrecordedeventmediawiththeMediaPlayerinterface ──────────────────────────────────────────────────────────────────────────────── Page 47 ──────────────────────────────────────────────────────────────────────────────── l VS2008NET_OffscreenViewer ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Decompressliveandrecordedmedia Customdraw l VS2008NET_RawDBDecompress Fetchingdatabaserecords Decompressingthefetchedrecordsasfastaspossible l VS2008NET_MediaPlayerExport ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Exportpicturedata l VS2008NET_SimpleGBFViewer OpenandcloseaGEUTEBRÜCKBackupFiles(GBF) enumerateexistingmediachannelsintheGBFfile DisplaymediawiththeMediaPlayerinterface l TheVS2010NET_ServiceFrameworkDemoexample isanexampleforageneralserviceapplication.Servicesbasedonthe GEUTEBRÜCK ServiceFrameworkbehavelikeallGEUTEBRÜCKproduct l VS2008NET_GscRegEdit SimpleGeViScoperegistryeditor ConnecttoaGeViScopeserver ModifyGeViScopesettingsusingtheGeViScoperegistry ExportsettingstoGeViScoperegistryfileformat l VS2008NET_GscRegistryBasics SimpledemonstrationinusingtheGeViScoperegistry Readingoutmediachannels AddavaluetotheGeViScoperegistry SavingtheGeViScoperegistry MicrosoftVisualStudio2008,C#,WPF© l VS2008WPF_SimpleClient ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface MicrosoftVisualStudio2010,C++ l VS2010CPP_ConfigReader l VS2010CPP_ControlBlockingFilters MicrosoftVisualStudio2010,C#© l VS2010NET_SimpleClient ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface Customdraw l VS2010NET_ActionsAndEvents ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsandeventtypesfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface ──────────────────────────────────────────────────────────────────────────────── Page 48 ──────────────────────────────────────────────────────────────────────────────── Handlingactions Handlingevents DisplayrecordedeventmediawiththeMediaPlayerinterface l VS2010NET_OffscreenViewer ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Decompressliveandrecordedmedia Customdraw l VS2010NET_RawDBDecompress Fetchingdatabaserecords Decompressingthefetchedrecordsasfastaspossible l VS2010NET_MediaPlayerExport ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver Exportpicturedata l VS2010NET_SimpleGBFViewer OpenandcloseaGEUTEBRÜCKBackupFiles(GBF) enumerateexistingmediachannelsintheGBFfile DisplaymediawiththeMediaPlayerinterface l TheVS2010NET_ServiceFrameworkDemo exampleisanexampleforageneralserviceapplication.Servicesbasedon theGEUTEBRÜCKServiceFrameworkbehavelikeallGEUTEBRÜCK productservices. l VS2010NET_GscRegEdit SimpleGeViScoperegistryeditor ConnecttoaGeViScopeserver ModifyGeViScopesettingsusingtheGeViScoperegistry ExportsettingstoGeViScoperegistryfileformat l VS2010NET_GscRegistryBasics SimpledemonstrationinusingtheGeViScoperegistry Readingoutmediachannels AddavaluetotheGeViScoperegistry SavingtheGeViScoperegistry MicrosoftVisualStudio2010,C#,WPF© l VS2010WPF_SimpleClient ConnecttoanddisconnectfromaGeViScopeserver enumerateexistingmediachannelsfromaGeViScopeserver DisplayliveandrecordedmediawiththeMediaPlayerinterface ──────────────────────────────────────────────────────────────────────────────── Page 49 ──────────────────────────────────────────────────────────────────────────────── Actiondocumentation ThefollowingchaptercontainsashortoverviewabouttheexistingGEUTEBRÜCKactions andthereparameterdescriptions. ATM/ACS ACSaccessdenied Actionname:ACSAccessDenied(ACSName,ACSNo,Account,BancCode,CardNo, TimeStamp,Reason)Actioncategory:logicalACSaccessdenied. Parameter Function ACS ACSNameACSname. ACSno ACSNo ACSno. account Account Accountno. bankcodeBancCodeBankcode. cardno CardNo Cardno. timestampTimeStampTimestamp. reason Reason Reason. ACSaccessgranted Actionname:ACSAccessGranted(ACSName,ACSNo,Account,BancCode,CardNo, TimeStamp)Actioncategory:logical ACSaccessgranted. Parameter Function ACS ACSNameACSname. ACSno ACSNo ACSno. account Account Accountno. bankcodeBancCodeBankcode. cardno CardNo Cardno. timestampTimeStampTimestamp. ACSrawanswer Actionname:ACSRawAnswer(ACSName,TimeStamp,ACSData)Actioncategory:logical ACSrawanswer. Parameter Function ACS ACSNameACSname. timestampTimeStampTimestamp. answer ACSDataACSanswer. ACSrawdata Actionname:ACSRawData(ACSName,TimeStamp,ACSData)Actioncategory:logical ──────────────────────────────────────────────────────────────────────────────── Page 50 ──────────────────────────────────────────────────────────────────────────────── ACSrawdata. Parameter Function ACS ACSNameACSname. timestampTimeStampTimestamp. data ACSDataACSdata. ATMrawanswer Actionname:ATMRawAnswer(ATMName,TimeStamp,ATMData)Actioncategory:logical ATMrawanswer. Parameter Function ATM ATMNameATMname. timestampTimeStampTimestamp. answer ATMDataATManswer. ATMrawdata Actionname:ATMRawData(ATMName,TimeStamp,ATMData)Actioncategory:logical ATMrawdata. Parameter Function ATM ATMNameATMname. timestampTimeStampTimestamp. data ATMDataATMdata. ATMtransaction Actionname:ATMTransaction(ATMName,NewTransaction,Photostep,ATMNo,Account, BancCode,CardNo,TAN1,TAN2,TimeStamp1,TimeStamp2,Amount,Currency)Action category:logicalATMtransaction. Parameter Function ATM ATMName ATMname. newtransactionNewTransactionNewtransaction. photostep Photostep Photostep. ATMno ATMNo ATMno. account Account Accountno. bankcode BancCode Bankcode. cardno CardNo Cardno. tan1 TAN1 TAN1. tan2 TAN2 TAN2. timestamp1 TimeStamp1Timestamp1. timestamp2 TimeStamp2Timestamp2. amount Amount Amount. currency Currency Currency.