if(pPlayView->stream_info == NULL) {
vp_sound_init_session(pViewHandle);
}
-
+ // Only capture the audio stream on resume when player was in play state before pause.
if (!vp_play_normal_view_is_audio_only(pPlayView) && manual_paused == FALSE) {
sound_stream_focus_state_e state_for_playback;
sound_stream_focus_state_e state_for_recording;
-#define TOOLBAR_BUTTON_VIDEOS "Videos"
-#define TOOLBAR_BUTTOn_FOLDERS "Folders"
+#define TOOLBAR_BUTTON_VIDEOS VIDEOS_VIEWASOPT_OPT_THUMBNAIL
+#define TOOLBAR_BUTTOn_FOLDERS VIDEOS_TITLE_OPT_FOLDER
static st_VideoListViewMainViewHandle *g_pMainViewHandle = NULL;
static st_VideoListViewMainViewWidget *g_pMainViewWidget = NULL;
LIST_UPDATE_TYPE_ALL, __mp_list_view_result_user_cb);
}
+static void _tolbar_language_changed(void *data, Evas_Object *obj, void *event_info)
+{
+ elm_object_item_part_text_set(g_pToolbarItemData.videos_item, "elm.text", TOOLBAR_BUTTON_VIDEOS);
+ elm_object_item_part_text_set(g_pToolbarItemData.folders_item, "elm.text", TOOLBAR_BUTTOn_FOLDERS);
+}
+
Evas_Object* mp_list_view_create_toolbar(Evas_Object* naviframe)
{
Evas_Object *toolbar;
elm_toolbar_transverse_expanded_set(toolbar, EINA_TRUE);
elm_toolbar_select_mode_set(toolbar, ELM_OBJECT_SELECT_MODE_ALWAYS);
+ evas_object_smart_callback_add(toolbar, "language,changed", _tolbar_language_changed, NULL);
+
g_pToolbarItemData.videos_item = elm_toolbar_item_append(toolbar, NULL, TOOLBAR_BUTTON_VIDEOS, toolbar_videos_item_cb, NULL);
g_pToolbarItemData.folders_item = elm_toolbar_item_append(toolbar, NULL, TOOLBAR_BUTTOn_FOLDERS, toolbar_folders_item_cb, NULL);
external: "feedback";
}
+images {
+ image: "play_speed_bg.png" COMP;
+}
+
collections {
base_scale: CURRENT_BASE_SCALE;
plugins {
part {
name: "pv.normal.main.playingspeed.rect";
- type: RECT;
+ type: IMAGE;
mouse_events: 1;
repeat_events : 1;
scale: 1;
description {
state: "default" 0.0;
visible: 0;
- min: 100 25;
+ min: 80 80;
+ max: 80 80;
fixed: 1 1;
align: 0.5 1.0;
- rel1 { relative: 0.4 0.0; to_y : "pv.normal.main.control"; offset : 0 -20; }
- rel2 { relative: 0.6 0.0; to_y : "pv.normal.main.control"; offset : 0 -20; }
- color: 0 0 0 102;
+ rel1 { to: "pv.normal.main.control"; relative: 0.0 0.0; }
+ rel2 { to: "pv.normal.main.control"; relative: 1.0 0.0; offset: 0 -10; }
+ image {
+ normal: "play_speed_bg.png";
+ }
}
description {
state: "show" 0.0;
description {
state: "default" 0.0;
visible: 0;
- align: 0.0 0.0;
+ align: 0.5 0.5;
rel1 { relative: 0.0 0.0; to : "pv.normal.main.playingspeed.rect";}
rel2 { relative: 1.0 1.0; to : "pv.normal.main.playingspeed.rect";}
color: FONT_COLOR;