diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2009-01-07 13:07:31 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2009-01-07 13:07:31 +0000 |
commit | 0e2a2e49077b79bd52d6c83c5202e452e7eea091 (patch) | |
tree | 58ae466e2c74be585548f10ffff96560099c9370 /orkbasecxx/CapturePluginProxy.cpp | |
parent | ded03e95a1eb78cb16ef3a4a0dc9bb140bd748ba (diff) |
Modified the orkaudio API, adding the record and pause HTTP commands. The record command commences or un-pauses recording while the pause command pauses recording - discarding RTP packets from when the pause command is issued. Both commands require the orkuid and party to be specified as HTTP parameters. Note that this represents a change in the arguments required for the StartCapture function in DLLs. Also added an event streaming feature which streams out all tape messages as they are reported in real-time to a client connected. Clients should connect via HTTP, on port 59150. The port is configurable by setting the parameter EventStreamingServerPort in config.xml
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@590 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/CapturePluginProxy.cpp')
-rw-r--r-- | orkbasecxx/CapturePluginProxy.cpp | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/orkbasecxx/CapturePluginProxy.cpp b/orkbasecxx/CapturePluginProxy.cpp index 925c14a..f5db16c 100644 --- a/orkbasecxx/CapturePluginProxy.cpp +++ b/orkbasecxx/CapturePluginProxy.cpp @@ -122,7 +122,15 @@ bool CapturePluginProxy::Init() m_stopCaptureFunction = (StopCaptureFunction)m_dll.symbol("StopCapture"); if (m_stopCaptureFunction) { - m_loaded = true; + m_pauseCaptureFunction = (PauseCaptureFunction)m_dll.symbol("PauseCapture"); + if(m_stopCaptureFunction) + { + m_loaded = true; + } + else + { + LOG4CXX_ERROR(LOG.rootLog, CStdString("Could not find PauseCapture function in ") + pluginPath); + } } else { @@ -180,11 +188,11 @@ void CapturePluginProxy::Shutdown() } } -void CapturePluginProxy::StartCapture(CStdString& party) +void CapturePluginProxy::StartCapture(CStdString& party, CStdString& orkuid) { if(m_loaded) { - m_startCaptureFunction(party); + m_startCaptureFunction(party, orkuid); } else { @@ -204,6 +212,18 @@ void CapturePluginProxy::StopCapture(CStdString& party) } } +void CapturePluginProxy::PauseCapture(CStdString& party, CStdString& orkuid) +{ + if(m_loaded) + { + m_pauseCaptureFunction(party, orkuid); + } + else + { + throw(CStdString("PauseCapture: Capture plugin not yet loaded")); + } +} + void __CDECL__ CapturePluginProxy::AudioChunkCallBack(AudioChunkRef chunkRef, CStdString& capturePort) { // find the right port and give it the audio chunk |