if (_mp_is_current_focus_available(ad) != 0) {
if (key == MEDIA_KEY_PLAY) {
ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
return;
} else {
ERROR_TRACE("Some other application has the focus currently... Changing state in paused state...");
if (_mp_is_current_focus_available(ad) != 0) {
ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
return;
}
#include "mp-common.h"
#include "mp-widget.h"
#include "mp-play.h"
+#include "mp-minicontroller.h"
#include "mp-edit-callback.h"
#include "mp-album-detail-view.h"
MpList_t *list = data;
MP_CHECK(list);
+ struct appdata *ad = mp_util_get_appdata();
+ MP_CHECK(ad);
+ if (_mp_is_current_focus_available(ad) != 0) {
+ ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
+ return;
+ }
+
mp_list_item_data_t *item = (mp_list_item_data_t *) elm_object_item_data_get(gli);
MP_CHECK(item);
#include "mp-common.h"
#include "mp-widget.h"
#include "mp-play.h"
+#include "mp-minicontroller.h"
#include "mp-common.h"
static char *
MpArtistDetailList_t *list = (MpArtistDetailList_t *)data;
MP_CHECK(list);
+ struct appdata *ad = mp_util_get_appdata();
+ MP_CHECK(ad);
+ if (_mp_is_current_focus_available(ad) != 0) {
+ ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
+ return;
+ }
+
mp_list_item_data_t *item = (mp_list_item_data_t *) elm_object_item_data_get(gli);
MP_CHECK(item);
DEBUG_TRACE("Playback state changed by : %d", changed_by);
if (changed_by == SOUND_STREAM_FOCUS_CHANGED_BY_CALL || changed_by == SOUND_STREAM_FOCUS_CHANGED_BY_VOIP || changed_by == SOUND_STREAM_FOCUS_CHANGED_BY_RINGTONE) {
DEBUG_TRACE("Cannot resume Music Player due to call");
- char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
- if (message) {
- int ret = notification_status_message_post(dgettext("music-player", message));
- if (ret != 0) {
- ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
- } else {
- DEBUG_TRACE("message: [%s]", message);
- }
- }
return -1;
}
if (_mp_is_current_focus_available(ad) != 0) {
ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
return;
}
if (_mp_is_current_focus_available(ad) != 0) {
ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
return;
}
#include "mp-play.h"
#include "mp-edit-callback.h"
#include "mp-player-mgr.h"
+#include "mp-minicontroller.h"
#include <media_content.h>
#include <player.h>
MpList_t *list = data;
MP_CHECK(list);
+ struct appdata *ad = mp_util_get_appdata();
+ MP_CHECK(ad);
+ if (_mp_is_current_focus_available(ad) != 0) {
+ ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
+ return;
+ }
+
mp_list_item_data_t *item = (mp_list_item_data_t *) elm_object_item_data_get(gli);
MP_CHECK(item);