pContentInfoStruct->TitleName = pAudioContentInfo->GetTitle();
}
pContentInfoStruct->Duration = pAudioContentInfo->GetDuration();/*__pPlayer->GetDuration();*/
- if (pContentInfoStruct->Duration == null)
+ if (__pPlayer != null && pContentInfoStruct->Duration == null)
{
__pPlayer->GetDuration();
}
{
pContentInfoStruct->TitleName = pAudioMeta->GetTitle();
}
- pContentInfoStruct->Duration = __pPlayer->GetDuration();
+
+ if(__pPlayer != null)
+ {
+ pContentInfoStruct->Duration = __pPlayer->GetDuration();
+ }
delete pAudioMeta;
}
AppLogDebug("ENTER");
result r = E_SUCCESS;
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return E_FAILURE;
+ }
+
if (__seekCompleted == false)
{
AppLogDebug("EXIT");
PlayerPresentationModel::Pause(void)
{
AppLogDebug("ENTER");
+
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
+
result r = E_SUCCESS;
PlayerState playerState = __pPlayer->GetState() ;
AppLogDebug("%d", playerState);
PlayerPresentationModel::MovePreviousContent(bool forceMove)
{
AppLogDebug("ENTER");
+
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
+
result r = E_SUCCESS;
String currentDuration = null;
PlayerPresentationModel::MoveNextContent(void)
{
AppLogDebug("ENTER");
+
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
// String currentDuration = null;
// ClosePlayer();
PlayerPresentationModel::SetPlayPosition(int playPosition)
{
AppLogDebug("ENTER");
+
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
+
result r = E_SUCCESS;
String currentDuration = null;
AppLogDebug("ENTER");
// StopForwardRewind();
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
+
AppLogDebug("GetRepeatState() : %d", GetRepeatState());
switch (GetRepeatState())// 0 - 2 (OFF, ONE, ALL)
{
PlayerPresentationModel::OnPlayerBuffering(int percent)
{
AppLogDebug("ENTER");
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
CallOnPlayStateChanged(__pPlayer->GetState());
AppLogDebug("EXIT");
}
PlayerPresentationModel::OnPlayerErrorOccurred(PlayerErrorReason r)
{
AppLogDebug("ENTER");
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
CallOnPlayStateChanged(__pPlayer->GetState());
AppLogDebug("EXIT");
}
PlayerPresentationModel::OnTimerExpired(Timer& timer)
{
AppLogDebug("ENTER");
+
+ if(__pPlayer == null)
+ {
+ AppLogDebug("EXIT");
+ return;
+ }
+
result r = E_SUCCESS;
if (__pPlayStateTimer == &timer)
{
pListener->OnPlayPresentationModelDestroying();
}
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
return;
}
- __pSearchBar->HideKeypad();
- Invalidate(true);
-
if (itemIndex == __pPresentationModel->GetArtistIndex()
|| itemIndex == __pPresentationModel->GetAlbumIndex()
|| itemIndex == __pPresentationModel->GetSongIndex())
{
+ __pSearchBar->HideKeypad();
+ Invalidate(true);
return;
}
const Tizen::Ui::Scenes::SceneId& nextSceneId)
{
AppLogDebug("ENTER");
- if (__pSearchBar != null)
+/* if (__pSearchBar != null)
{
__pSearchBar->HideKeypad();
Invalidate(true);
}
__pPresentationModel->RemoveSearchResult();
__pSearchTableView->UpdateTableView();
-
+*/
// if (__pSearchBar->GetKeypadAction() == true)
// {
// __pSearchBar->HideKeypad();
pSceneManager->GoForward(ForwardSceneTransition(__pSceneId->GetPointer(), SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY));
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}