sound_manager_set_focus_reacquisition(ad->stream_info, EINA_FALSE);
}
} else {
+ if (reason_for_change == SOUND_STREAM_FOCUS_CHANGED_BY_VOIP ||
+ reason_for_change == SOUND_STREAM_FOCUS_CHANGED_BY_CALL ||
+ reason_for_change == SOUND_STREAM_FOCUS_CHANGED_BY_RINGTONE) {
+ 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_play_control_play_pause(ad, true);
}
}