MC_PROGRAM_IMAGE_VISIBLE("pause_btn", "show_pause_btn", "hide_pause_btn")
program { name: "albumart_cb";
- signal: "mouse,clicked,1";
+ signal: "mouse,down,1";
source: "albumart_image";
script{
emit("albumart_clicked", "edje");
emit("close_btn_clicked", "edje");
}
}
-
+/*
program{
name: "albumart_cb_after_down";
source: "albumart_image";
signal: "mouse,down,1";
transition: ACCELERATE 0.02;
}
- /*
program {
name: "albumart_cb_down";
source: "albumart_image";
}
program { name: "albumart_cb";
- signal: "mouse,clicked,1";
+ signal: "mouse,down,1";
source: "albumart_image";
script{
emit("albumart_clicked", "edje");
}
}
+ /*
program{
name: "albumart_cb_after_down";
source: "albumart_image";
signal: "mouse,down,1";
transition: ACCELERATE 0.02;
}
- /*
program {
name: "albumart_cb_down";
source: "albumart_image";
return landscape;
}
-//static void
-//_vp_minicontroller_action_show_player_view(struct appdata *ad)
-//{
-// startfunc;
-// MP_CHECK(ad);
-//#ifndef MP_SOUND_PLAYER
-// if (GET_PLAYER_VIEW != vp_view_mgr_get_top_view(GET_VIEW_MGR)) {
-// if (!ad->is_focus_out) {
-// minicontrol_send_event(ad->win_minicon, MINICONTROL_EVENT_REQUEST_HIDE, NULL);
-// } else {
-// vp_util_app_resume();
-// }
-// vp_common_show_player_view(MP_PLAYER_NORMAL, true, false, true);
-// } else
-//#endif
-// {
-// if (!ad->is_focus_out) {
-// minicontrol_send_event(ad->win_minicon, MINICONTROL_EVENT_REQUEST_HIDE, NULL);
-// } else {
-// vp_util_app_resume();
-// }
-// }
-//}
+static void
+_vp_minicontroller_action_show_player_view(PlayView *pPlayView)
+{
+ if (!pPlayView) {
+ VideoLogError("pPlayView is NULL");
+ }
+ VideoLogDebug("Showing controller.");
+ minicontrol_send_event(pPlayView->win_minicon, MINICONTROL_EVENT_REQUEST_HIDE, NULL);
+ vp_play_util_app_resume();
+
+}
static void
_minicontroller_action_cb(void *data, Evas_Object * obj, const char *emission, const char *source)
}
if (emission) {
if (!g_strcmp0(emission, "close_btn_clicked")) {
+ VideoLogDebug("close button clicked!!");
vp_minicontroller_destroy(pPlayView);
vp_play_normal_view_on_controller_button_press(pPlayView->pNormalView, CONTROLLER_PAUSE_BUTTON);
} else if (!g_strcmp0(emission, "albumart_clicked")) {
- // EVENT_TRACE("albumart");
- // _vp_minicontroller_action_show_player_view(ad);
+ VideoLogDebug("albumart clicked!!");
+ _vp_minicontroller_action_show_player_view(pPlayView);
return;
}
}