|
@@ -1053,7 +1053,6 @@ public:
|
|
return Error_DevConnFailed;
|
|
return Error_DevConnFailed;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
-#ifdef RVC_OS_WIN
|
|
|
|
PlayService_StartPlayVideo_Req Req;
|
|
PlayService_StartPlayVideo_Req Req;
|
|
Req.CfgInx = nCfgInx;
|
|
Req.CfgInx = nCfgInx;
|
|
Req.WndX = nWndX;
|
|
Req.WndX = nWndX;
|
|
@@ -1062,9 +1061,6 @@ public:
|
|
Req.WndHeight = nWndHeight;
|
|
Req.WndHeight = nWndHeight;
|
|
CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
return pLocalPlayerClient->StartPlayVideo(Req, spAsyncWait, dwTimeout);
|
|
return pLocalPlayerClient->StartPlayVideo(Req, spAsyncWait, dwTimeout);
|
|
-#else
|
|
|
|
- return Error_Succeed;
|
|
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1113,14 +1109,10 @@ public:
|
|
return Error_DevConnFailed;
|
|
return Error_DevConnFailed;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
-#ifdef RVC_OS_WIN
|
|
|
|
PlayService_StopPlayVideo_Req Req;
|
|
PlayService_StopPlayVideo_Req Req;
|
|
Req.CfgInx = nCfgInx;
|
|
Req.CfgInx = nCfgInx;
|
|
CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
return pLocalPlayerClient->StopPlayVideo(Req, spAsyncWait, dwTimeout);
|
|
return pLocalPlayerClient->StopPlayVideo(Req, spAsyncWait, dwTimeout);
|
|
-#else
|
|
|
|
- return Error_Succeed;
|
|
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1857,9 +1849,13 @@ void UIServiceSession::Handle_StopPhotograph(SpOnewayCallContext<UIService_StopP
|
|
// add by ly
|
|
// add by ly
|
|
void UIServiceSession::Handle_StartPlayVideo(SpReqAnsContext<UIService_StartPlayVideo_Req, UIService_StartPlayVideo_Ans>::Pointer ctx)
|
|
void UIServiceSession::Handle_StartPlayVideo(SpReqAnsContext<UIService_StartPlayVideo_Req, UIService_StartPlayVideo_Ans>::Pointer ctx)
|
|
{
|
|
{
|
|
|
|
+#ifdef RVC_OS_WIN
|
|
ErrorCodeEnum Error = m_pEntity->StartPlayVideo(ctx->Req.CfgInx, ctx->Req.WndX, ctx->Req.WndY, ctx->Req.WndWidth, ctx->Req.WndHeight, 800);
|
|
ErrorCodeEnum Error = m_pEntity->StartPlayVideo(ctx->Req.CfgInx, ctx->Req.WndX, ctx->Req.WndY, ctx->Req.WndWidth, ctx->Req.WndHeight, 800);
|
|
Dbg("Start Play Local Video!");
|
|
Dbg("Start Play Local Video!");
|
|
ctx->Answer(Error);
|
|
ctx->Answer(Error);
|
|
|
|
+#else
|
|
|
|
+ ctx->Answer(Error_Succeed);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
void UIServiceSession::Handle_StartPlayAudio(SpReqAnsContext<UIService_StartPlayAudio_Req, UIService_StartPlayAudio_Ans>::Pointer ctx)
|
|
void UIServiceSession::Handle_StartPlayAudio(SpReqAnsContext<UIService_StartPlayAudio_Req, UIService_StartPlayAudio_Ans>::Pointer ctx)
|
|
@@ -1878,9 +1874,13 @@ void UIServiceSession::Handle_StartPlayImage(SpReqAnsContext<UIService_StartPlay
|
|
|
|
|
|
void UIServiceSession::Handle_StopPlayVideo(SpReqAnsContext<UIService_StopPlayVideo_Req, UIService_StopPlayVideo_Ans>::Pointer ctx)
|
|
void UIServiceSession::Handle_StopPlayVideo(SpReqAnsContext<UIService_StopPlayVideo_Req, UIService_StopPlayVideo_Ans>::Pointer ctx)
|
|
{
|
|
{
|
|
|
|
+#ifdef RVC_OS_WIN
|
|
ErrorCodeEnum Error = m_pEntity->StopPlayVideo(ctx->Req.CfgInx, 800);
|
|
ErrorCodeEnum Error = m_pEntity->StopPlayVideo(ctx->Req.CfgInx, 800);
|
|
Dbg("Stop Play Local Video!");
|
|
Dbg("Stop Play Local Video!");
|
|
ctx->Answer(Error);
|
|
ctx->Answer(Error);
|
|
|
|
+#else
|
|
|
|
+ ctx->Answer(Error_Succeed);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
void UIServiceSession::Handle_StopPlayAudio(SpReqAnsContext<UIService_StopPlayAudio_Req, UIService_StopPlayAudio_Ans>::Pointer ctx)
|
|
void UIServiceSession::Handle_StopPlayAudio(SpReqAnsContext<UIService_StopPlayAudio_Req, UIService_StopPlayAudio_Ans>::Pointer ctx)
|