2 * Copyright 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved
4 * This file is part of org.tizen.video-player
5 * Written by JongDong Lee <jongdong.lee@samsung.com>, ChangSun Lee <cs78.lee@samsung.com>
7 * PROPRIETARY/CONFIDENTIAL
9 * This software is the confidential and proprietary information of SAMSUNG ELECTRONICS ("Confidential Information").
10 * You shall not disclose such Confidential Information and shall
11 * use it only in accordance with the terms of the license agreement you entered into with SAMSUNG ELECTRONICS.
12 * SAMSUNG make no representations or warranties about the suitability
13 * of the software, either express or implied, including but not
14 * limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement.
15 * SAMSUNG shall not be liable for any damages suffered by licensee as
16 * a result of using, modifying or distributing this software or its derivatives.
21 #ifndef _VIDEO_VALUE_DEFINE_
22 #define _VIDEO_VALUE_DEFINE_
28 #define PLAY_TIME_FORMAT "02u:%02u:%02u"
32 #define PLAY_TIME_ARGS(t) \
37 #define PLAY_TIME_LENGTH 9
40 #define _EDJ(x) elm_layout_edje_get(x)
51 #define PREFIX "/opt/apps/org.tizen.video-player"
52 #define EDJ_PATH "/opt/apps/org.tizen.video-player/res/edje"
53 #define LOCALEDIR "/opt/apps/org.tizen.video-player/res/locale"
55 #define VIDEO_HEAD_ICON_ADD PREFIX"/res/images/01_header_icon_add.png"
56 #define VIDEO_HEAD_ICON_DEL PREFIX"/res/images/01_header_icon_cancel.png"
57 #define VIDEO_HEAD_ICON_OTHERS PREFIX"/res/images/01_header_icon_others.png"
59 #define VIDEO_HEAD_ICON_SOUNDPATH PREFIX"/res/images/T01_icon_soundPath_h.png"
61 #define VIDEO_PLAYER_MAIN_EDJ EDJ_PATH"/main.edj"
62 #define VIDEO_PLAYER_CONTROL_EDJ EDJ_PATH"/control.edj"
63 #define VIDEO_PLAYER_PANEL_EDJ EDJ_PATH"/panel.edj"
64 #define VIDEO_PLAYER_PROGRESS_EDJ EDJ_PATH"/progress.edj"
65 #define VIDEO_PLAYER_ADD_TAG EDJ_PATH"/add_tag.edj"
66 #define VIDEO_PLAYER_ANIMATION_EDJ EDJ_PATH"/animation.edj"
67 #define VIDEO_PLAYER_DETAIL_EDJ EDJ_PATH"/detail.edj"
68 #define VIDEO_PLAYER_SUBTITLE_EDJ EDJ_PATH"/subtitle.edj"
69 #define VIDEO_CUSTOM_THEME EDJ_PATH"/vp-custom-winset-style.edj"
70 #define VIDEO_PLAYER_HIDDEN_PANEL_EDJ EDJ_PATH"/hidden_button_panel.edj"
71 #define VIDEO_PLAYER_OPTION_BUTTON_EDJ EDJ_PATH"/option_button.edj"
73 #define MAIN_EDJ_GROUP "main"
74 #define CONTROL_EDJ_GROUP "control"
75 #define PROGRESS_EDJ_GROUP "progress"
76 #define PANEL_EDJ_GROUP "panel"
77 #define FAVORITE_EDJ_GROUP "favorite"
78 #define ANIMATION_EDJ_GROUP "animation"
79 #define DETAIL_EDJ_GROUP "detail"
80 #define SUBTITLE_EDJ_GROUP "subtitle"
81 #define HIDDEN_PANEL_EDJ_GROUP "hidden_panel"
82 #define OPTION_EDJ_GROUP "option"
84 #define SWALLOW_MAIN_CONTROL "main.panel"
85 #define SWALLOW_MAIN_ANIMATION "main.animation"
86 #define SWALLOW_MAIN_HIDDEN_BUTTON "main.hidden.button"
87 #define SWALLOW_MAIN_OPTION_BUTTON "main.option.button"
90 #define SWALLOW_PANEL_CONTROL "panel.control"
91 #define SWALLOW_PANEL_PROGRESS_BAR "panel.progress"
93 #define SWALLOW_DETAIL_LIST "detail.list"
94 #define SUBTITLE_TEXT "subtitle.txt"
95 #define PART_BUTTON_ICON "icon"
98 #define SIGNAL_CONTROL_PART_PLAY_BUTTON "control.play.button"
99 #define SIGNAL_CONTROL_PART_BACK_BUTTON "control.back.button"
100 #define SIGNAL_CONTROL_PART_VOL_BUTTON "control.volume.button"
101 #define SIGNAL_CONTROL_PART_SOUNDPATH_BUTTON "control.soundpath.button"
102 #define SIGNAL_CONTROL_PART_SCREENSIZE_BUTTON "control.screensize.button"
103 #define SIGNAL_CONTROL_PART_FF_BUTTON "control.normal.ff.button"
104 #define SIGNAL_CONTROL_PART_REW_BUTTON "control.normal.rew.button"
105 #define SIGNAL_CONTROL_PART_HQ_BUTTON "control.streaming.hq.button"
106 #define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH "hidden.button.panel.soundpath"
108 #define SIGNAL_CONTROL_MODE_NORMAL "signal.control.mode.normal"
109 #define SIGNAL_CONTROL_MODE_STREAMING "signal.control.mode.streaming"
110 #define SIGNAL_CONTROL_MODE_VISIBLE_OFF "signal.control.mode.visible.off"
111 #define SIGNAL_CONTROL_BACK_BUTTON_DOWN "signal.control.back.button.down"
113 #define SIGNAL_CONTROL_FF_MODE_NORMAL "signal.control.ff.normal"
114 #define SIGNAL_CONTROL_FF_MODE_EXTEND "signal.control.ff.extend"
116 #define SIGNAL_CONTROL_REW_MODE_NORMAL "signal.control.rew.normal"
117 #define SIGNAL_CONTROL_REW_MODE_EXTEND "signal.control.rew.extend"
119 #define SIGNAL_CONTROL_VOL_BUTTON_DOWN "signal.control.volume.button.down"
120 #define SIGNAL_CONTROL_VOL_BUTTON_UP "signal.control.volume.button.up"
121 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_DOWN "signal.control.soundpath.button.down"
122 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_UP "signal.control.soundpath.button.up"
123 #define SIGNAL_CONTROL_SCREENSIZE_NORMAL "signal.control.screensize.normal"
124 #define SIGNAL_CONTROL_SCREENSIZE_EXPAND "signal.control.screensize.expand"
125 #define SIGNAL_CONTROL_NORMAL_FF_BUTTON_DOWN "signal.control.normal.ff.button.down"
126 #define SIGNAL_CONTROL_NORMAL_FF_BUTTON_UP "signal.control.normal.ff.button.up"
127 #define SIGNAL_CONTROL_NORMAL_REW_BUTTON_DOWN "signal.control.normal.rew.button.down"
128 #define SIGNAL_CONTROL_NORMAL_REW_BUTTON_UP "signal.control.normal.rew.button.up"
129 #define SIGNAL_CONTROL_HQ_BUTTON_DOWN "signal.control.streaming.hq.button.down"
130 #define SIGNAL_CONTROL_HQ_BUTTON_UP "signal.control.streaming.hq.button.up"
131 #define SIGNAL_HIDDEN_PANEL_SOUNDPATH_DOWN "signal.hidden.button.panel.soundpath.down"
132 #define SIGNAL_HIDDEN_PANEL_SOUNDPATH_UP "signal.hidden.button.panel.soundpath.up"
134 #define SIGNAL_CONTROL_VOL_BUTTON_MUTE "signal.control.volume.button.mute"
135 #define SIGNAL_CONTROL_VOL_BUTTON_UNMUTE "signal.control.volume.button.unmute"
136 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_ACTIVE "signal.control.soundpath.button.active"
137 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_UNACTIVE "signal.control.soundpath.button.unactive"
138 #define SIGNAL_CONTROL_STREAMING_QUALITY_HIGH "signal.control.streaming.quality.high"
139 #define SIGNAL_CONTROL_STREAMING_QUALITY_NORMAL "signal.control.streaming.quality.normal"
140 #define SIGNAL_CONTROL_STREAMING_QUALITY_HIDE "signal.control.streaming.quality.hide"
143 #define SIGNAL_OPTION_PART_SCREEN_SIZE "option.screensize"
144 #define SIGNAL_OPTION_PART_DETAIL "option.detail"
146 #define SIGNAL_OPTION_SCREEN_SIZE_DOWN "signal.option.screensize.down"
147 #define SIGNAL_OPTION_DETAIL_DOWN "signal.option.detail.down"
149 #define SIGNAL_OPTION_SCREEN_SIZE_NORMAL "signal.option.screensize.normal"
150 #define SIGNAL_OPTION_SCREEN_SIZE_EXPAND "signal.option.screensize.expand"
153 #define SIGNAL_CONTROL_PLAY_BUTTON_DOWN "signal.control.play.button.down"
154 #define SIGNAL_CONTROL_PLAY_BUTTON_UP "signal.control.play.button.up"
155 #define SIGNAL_CONTROL_PLAY_PAUSE_PRESS "signal.control.play.pause.press"
156 #define SIGNAL_CONTROL_PLAY_RESUME_PRESS "signal.control.play.resume.press"
159 #define SIGNAL_CONTROL_PLAY_RESUME "signal.control.play.resume"
160 #define SIGNAL_CONTROL_PLAY_PAUSE "signal.control.play.pause"
162 #define SIGNAL_CONTROL_SCREENSIZE_BUTTON_NORMAL "signal.control.screensize.button.normal"
163 #define SIGNAL_CONTROL_SCREENSIZE_BUTTON_EXPAND "signal.control.screensize.button.expand"
165 #define SIGNAL_OPTION_MODE_STREAMING "signal.option.mode.streaming"
168 #define SIGNAL_MAIN_MUTE_SHOW "signal.main.mute.show"
169 #define SIGNAL_MAIN_MUTE_HIDE "signal.main.mute.hide"
171 #define SIGNAL_MAIN_NOCONTENTS_SHOW "signal.main.nocontents.show"
172 #define SIGNAL_MAIN_NOCONTENTS_HIDE "signal.main.nocontents.hide"
174 #define SIGNAL_MAIN_SCREEN_TOUCH_PRESS "signal.main.screen.touch.press"
175 #define SIGNAL_MAIN_SCREEN_TOUCH_TOGGLE "main.screen.touch.toggle"
176 #define SIGNAL_MAIN_ANIMATION_SHOW "signal.main.animation.show"
177 #define SIGNAL_MAIN_ANIMATION_HIDE "signal.main.animation.hide"
179 #define SIGNAL_MAIN_OPTION_BUTTON_BG_HIDE "signal.main.option.button.bg.hide"
181 #define SIGNAL_ANIMATION_IMAGE_LOADING "signal.loading.image.step"
183 #define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH_SHOW "signal.hidden.button.panel.soundpath.show"
184 #define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH_HIDE "signal.hidden.button.panel.soundpath.hide"
186 #define TAG_FAVOURITES "Favourites"
187 #define PACKAGE "video-player"
188 #define PAUSE_KEY "XF86AudioPause"
189 #define PLAY_KEY "XF86AudioPlay"
190 #define STOP_KEY "XF86AudioStop"
191 #define NEXT_KEY "XF86AudioNext"
192 #define PREV_KEY "XF86AudioPrev"
193 #define FORWARD_KEY "XF86AudioForward"
194 #define REWIND_KEY "XF86AudioRewind"
195 #define END_KEY KEY_END
196 #define HOME_KEY KEY_SELECT
197 #define KEY_CANCLE KEY_CANCEL
198 #define POWER_KEY "XF86PowerOff"
199 #define VOLUME_DOWN_KEY KEY_VOLUMEDOWN
200 #define VOLUME_MUTE 0
201 #define KEY_GRAB_SHARED SHARED_GRAB
202 #define KEY_GRAB_EXCLUSIVE EXCLUSIVE_GRAB
203 #define KEY_GRAB_TOP_POSITION TOP_POSITION_GRAB
204 #define KEY_GRAB_OR_EXCLUSIVE OR_EXCLUSIVE_GRAB
205 #define STR_LEN_MAX 4096 * 3
207 #define XML_ITEM_NUM 6
208 #define _WIFI_MODE_ 1
210 #define USE_STREAMING_ANI 1
211 #define LONG_PRESS_INTERVAL 0.5
213 #define SCREEN_TOUCH_TOGGLE_AREA_Y_START 0.065
214 #define SCREEN_TOUCH_TOGGLE_AREA_Y_END 0.78
216 #define TAG_LIST_SIZE 256
218 #define ANIMATION_TIMER_INTERVAL 0.05
219 #define ANIMATION_MAX_COUNT 30
221 #define BOOSTER_STEP_DISTANCE 30
222 #define SIGNAL_TEXT_MAX_LEN 64
223 #define CAPTION_TEXT_MAX_LEN 16
224 #define STR_UUID_LEN_MAX 37
226 #endif //_VIDEO_VALUE_DEFINE_