VideoPlayerForm::Initialize(void)
{
AppLogDebug("Initialize");
+
Construct(L"IDL_MAIN_FORM");
}
__pVideoPlayerPresentationModel->SetOverlayPanel(__pOverlayPanel);
- __pVideoPlayerPresentationModel->InitializePlayer();
+ r = __pVideoPlayerPresentationModel->InitializePlayer();
TryCatch(r == E_SUCCESS, , "InitializePlayer() failed : %s", GetErrorMessage(r));
__pVideoPlayerPresentationModel->SetVideoPlayerEventListener(this);
VideoPlayerForm::OnTerminating(void)
{
AppLogDebug("OnTerminating");
+
DeleteTimer();
DestroyPresentationModelInstance();
VideoPlayerForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
{
result r = E_FAILURE;
+
AppLogDebug("OnSceneActivatedN");
String totalTime;
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), pList);
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE), new (std::nothrow) String(APPCONTROL_DATA_MMS));
- pAppControl->Start(null, null, pDataList, this);
+ r = pAppControl->Start(null, null, pDataList, this);
+
+ if (r == E_SUCCESS)
+ {
+ __pShareButton->RemoveActionEventListener(*this);
+ }
delete pAppControl;
}
pList->Add(new (std::nothrow) String(filePath));
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), pList);
- pAppControl->Start(null, null, pDataList, this);
+ r = pAppControl->Start(null, null, pDataList, this);
+
+ if (r == E_SUCCESS)
+ {
+ __pShareButton->RemoveActionEventListener(*this);
+ }
delete pAppControl;
}
{
AppLogDebug("ShowControlByFrameActivated");
+ __pShareButton->AddActionEventListener(*this);
+
CheckCallStatus();
CheckLowBatteryStatus();
}