|
@@ -58,223 +58,6 @@ public:
|
|
|
return Error;
|
|
|
}
|
|
|
|
|
|
- ErrorCodeEnum GetVideoDeviceName(MediaService_GetVideoDeviceName_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->AsyncRequest(MediaService_Method_GetVideoDeviceName, MediaService_MethodSignature_GetVideoDeviceName, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
- ErrorCodeEnum GetVideoDeviceName(MediaService_GetVideoDeviceName_Req &Req, MediaService_GetVideoDeviceName_Ans &Ans, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = GetVideoDeviceName(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum GetVideoDeviceName(MediaService_GetVideoDeviceName_Req &Req, MediaService_GetVideoDeviceName_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = GetVideoDeviceName(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum GetVideoDeviceName(MediaService_GetVideoDeviceName_Req &Req, MediaService_GetVideoDeviceName_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = GetVideoDeviceName(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- CSimpleString str;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum StartCamera()
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->OnewayCall(MediaService_Method_StartCamera, MediaService_MethodSignature_StartCamera, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum StopCamera()
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->OnewayCall(MediaService_Method_StopCamera, MediaService_MethodSignature_StopCamera, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum StartEnvCamera(MediaService_StartEnvCamera_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->AsyncRequest(MediaService_Method_StartEnvCamera, MediaService_MethodSignature_StartEnvCamera, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
- ErrorCodeEnum StartEnvCamera(MediaService_StartEnvCamera_Req &Req, MediaService_StartEnvCamera_Ans &Ans, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = StartEnvCamera(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum StartEnvCamera(MediaService_StartEnvCamera_Req &Req, MediaService_StartEnvCamera_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = StartEnvCamera(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum StartEnvCamera(MediaService_StartEnvCamera_Req &Req, MediaService_StartEnvCamera_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = StartEnvCamera(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- CSimpleString str;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum StopEnvCamera()
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->OnewayCall(MediaService_Method_StopEnvCamera, MediaService_MethodSignature_StopEnvCamera, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum StartSpeakerRender()
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->OnewayCall(MediaService_Method_StartSpeakerRender, MediaService_MethodSignature_StartSpeakerRender, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum StopSpeakerRender()
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->OnewayCall(MediaService_Method_StopSpeakerRender, MediaService_MethodSignature_StopSpeakerRender, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum ManipulateMediaDevice(MediaService_ManipulateMediaDevice_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->AsyncRequest(MediaService_Method_ManipulateMediaDevice, MediaService_MethodSignature_ManipulateMediaDevice, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
- ErrorCodeEnum ManipulateMediaDevice(MediaService_ManipulateMediaDevice_Req &Req, MediaService_ManipulateMediaDevice_Ans &Ans, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = ManipulateMediaDevice(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum ManipulateMediaDevice(MediaService_ManipulateMediaDevice_Req &Req, MediaService_ManipulateMediaDevice_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = ManipulateMediaDevice(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum ManipulateMediaDevice(MediaService_ManipulateMediaDevice_Req &Req, MediaService_ManipulateMediaDevice_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = ManipulateMediaDevice(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- CSimpleString str;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
-
|
|
|
ErrorCodeEnum GetAudioDevices(MediaService_GetAudioDevices_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
{
|
|
|
CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|