{
case PLAYER_ERROR_INVALID_DATA:
{
- if ((__pVideoPlayerPresentationModel->GetMediaPathName().EndsWith(L"flv") == true)
- || (__pVideoPlayerPresentationModel->GetMediaPathName().EndsWith(L"FLV") == true))
- {
- pAppResource = Application::GetInstance()->GetAppResource();
- pAppResource->GetString(IDS_COM_POP_UNSUPPORTED_FILE_TYPE, messageBoxString);
+ pAppResource = Application::GetInstance()->GetAppResource();
+ pAppResource->GetString(IDS_COM_POP_UNSUPPORTED_FILE_TYPE, messageBoxString);
- messageBox.Construct(L"", messageBoxString, MSGBOX_STYLE_OK, MESSAGEBOX_DISPLAY_TIME_3_SEC);
- messageBox.ShowAndWait(modalResult);
+ messageBox.Construct(L"", messageBoxString, MSGBOX_STYLE_NONE, MESSAGEBOX_DISPLAY_TIME_3_SEC);
+ messageBox.ShowAndWait(modalResult);
- AppLogDebug("OnPlayErrorOccurred : pApp->Terminate");
- UiApp* pApp = UiApp::GetInstance();
- pApp->Terminate();
- }
+ UiApp* pApp = UiApp::GetInstance();
+ TryReturnVoid(pApp != null, "pApp is null");
+ pApp->Terminate();
}
break;
pAppResource = Application::GetInstance()->GetAppResource();
pAppResource->GetString(IDS_VPL_POP_UNABLE_TO_PLAY_VIDEO_ERROR_OCCURRED, messageBoxString);
- messageBox.Construct(L"", messageBoxString, MSGBOX_STYLE_OK, MESSAGEBOX_DISPLAY_TIME_3_SEC);
+ messageBox.Construct(L"", messageBoxString, MSGBOX_STYLE_NONE, MESSAGEBOX_DISPLAY_TIME_3_SEC);
messageBox.ShowAndWait(modalResult);
- AppLogDebug("OnPlayErrorOccurred : pApp->Terminate");
UiApp* pApp = UiApp::GetInstance();
+ TryReturnVoid(pApp != null, "pApp is null");
pApp->Terminate();
}
break;
String messageBoxString;
pAppResource->GetString(IDS_COM_POP_UNSUPPORTED_FILE_TYPE, messageBoxString);
MessageBox messageBox;
- messageBox.Construct(L"", messageBoxString, MSGBOX_STYLE_OK, 3000);
+ messageBox.Construct(L"", messageBoxString, MSGBOX_STYLE_NONE, 3000);
int modalResult = 0;
messageBox.ShowAndWait(modalResult);