return nRet;
}
+/**
+* Iterate callback function to get media item
+* @param pVideoItem : media info
+* @param pUserData : folder item
+* @return result
+*/
static bool mp_util_svc_iterate_for_get_video_item_cb(media_info_h
pVideoItem,
void *pUserData)
return FALSE;
}
+/**
+* Iterate callback function to get media item
+* @param pMediaItem : media info
+* @param pUserData : folder item
+* @return result
+*/
static bool mp_util_svc_iterate_for_video_item_list_view_cb(media_info_h
pMediaItem,
void
return TRUE;
}
+
+/**
+* Iterate callback function to get media item
+* @param pMediaItem : media info
+* @param pUserData : media item
+* @return result
+*/
static bool mp_util_svc_iterate_cb(media_info_h pMediaItem,
void *pUserData)
{
return TRUE;
}
+/**
+* Iterate callback function to get media item
+* @param pFolderItem : media info
+* @param pUserData : folder item
+* @return result
+*/
static bool mp_util_svc_iterate_for_get_folder_cb(media_folder_h
pFolderItem,
void *pUserData)
return TRUE;
}
+/**
+* callback function to compare and sort folders
+* @param pFolder1 : media folder
+* @param pFolder2 : media folder
+* @return result
+*/
static int mp_util_svc_sort_for_folder_list_cb(const void *pFolder1,
const void *pFolder2)
{
return nRet;
}
+/**
+* iterate callback function for folders list items
+* @param pFolderItem : media folder
+* @param pUserData : folder item
+* @return result
+*/
static bool mp_util_svc_iterate_for_folder_list_cb(media_folder_h
pFolderItem,
void *pUserData)
return TRUE;
}
+/**
+* iterate callback function for personal folders list items
+* @param pFolderItem : media folder
+* @param pUserData : folder item
+* @return result
+*/
static bool mp_util_svc_iterate_for_personal_folder_list_cb(media_folder_h
pFolderItem,
void
// External function
//
+/**
+* Connect to media content
+*/
void mp_util_svc_init_session(void)
{
if (media_content_connect() != MEDIA_CONTENT_ERROR_NONE) {
}
}
+/**
+* Disconnect from media content
+*/
void mp_util_svc_finish_session(void)
{
return;
}
+/**
+* Free video items list
+* @return result
+*/
bool mp_util_svc_destory_video_item_list(void)
{
if (!VideoItemList) {
return TRUE;
}
+/**
+* Get list of videos from folder
+* @param szFolderPath : string
+* @param nSortType : sort type
+* @param nItemType : list view type
+* @return result
+*/
bool mp_util_svc_extract_video_list_from_folder(char *szFolderPath,
int nSortType,
int nItemType)
return TRUE;
}
+/**
+* Get thumbnail for folder
+* @param nVideoFolderIndex : folder index
+* @param nSortType : sort type
+* @return thumbnail path
+*/
char *mp_util_get_folder_thumbnail(int nVideoFolderIndex, int nSortType)
{
if (!VideoFolderList) {
return szThumbnailPath;
}
+/**
+* Get video list by item type
+* @param nSortType : sort type
+* @param nItemType : list view type
+* @return result
+*/
bool mp_util_svc_extract_video_list_by_item_type(int nSortType,
int nItemType)
{
return TRUE;
}
-
+/**
+* Get display name of video items
+* @param keyword : keyword to match
+* @param index_list : resulting list
+* @return result
+*/
bool mp_util_svc_index_list_for_search_view(const char *keyword,
void **index_list)
{
return TRUE;
}
+/**
+* Free video list
+*/
void mp_util_svc_destory_video_list(void)
{
nNumberOfVideoItemByType = 0;
}
+/**
+* Remove item from video list
+* @param nVideoItemIndex : index to remove
+* @return result
+*/
bool mp_util_svc_remove_item_by_list_index(int nVideoItemIndex)
{
return TRUE;
}
+
+/**
+* Remove item from db
+* @param nVideoItemIndex : index to remove
+* @return result
+*/
bool mp_util_svc_remove_item_from_db_by_list_index(int nVideoItemIndex)
{
return TRUE;
}
+/**
+* Get ID of the video item with specified url
+* @param szPath : path of video
+* @param szVideoID : resulting ID
+* @return result
+*/
+
bool mp_util_svc_get_video_id_by_video_url(const char *szPath,
char **szVideoID)
{
return bRet;
}
+/**
+* Get last played time of a video
+* @param szPath : path of video
+* @return last played time
+*/
unsigned int mp_util_svc_get_video_last_play_time_by_video_url(const char
*szPath)
{
return (unsigned int) nLastPlayedTime;
}
+/**
+* Get thumbnail of the video with specified url
+* @param szMediaUri : path of video
+* @return thumbnail path
+*/
char *mp_util_svc_get_video_Thumbnail_by_video_url(const char *szMediaUri)
{
if (!szMediaUri) {
return szThumbnailPath;
}
+/**
+* Set last played time of video with specified url
+* @param szMediaUri : path of video
+* @param nPosition : last played time
+* @return
+*/
+
void mp_util_svc_set_video_last_played_time_by_url(char *szMediaUri,
unsigned int nPosition)
{
}
+/**
+* Get video path
+* @param nVideoItemIndex : index of the video
+* @return path of the video
+*/
char *mp_util_svc_get_video_url(const int nVideoItemIndex)
{
if (!VideoItemList) {
return szVideoItemFilePath;
}
+/**
+* Get video thumbnail
+* @param nVideoItemIndex : index of the video
+* @return path of the video thumbnail
+*/
char *mp_util_svc_get_video_thumbnail(const int nVideoItemIndex)
{
if (!VideoItemList) {
return szVideoItemThumbnailPath;
}
+
+/**
+* Get video title
+* @param nVideoItemIndex : index of the video
+* @return title of the video
+*/
char *mp_util_svc_get_video_title(const int nVideoItemIndex)
{
if (!VideoItemList) {
return szTitle;
}
+/**
+* Get video duration
+* @param nVideoItemIndex : index of the video
+* @return duration of the video
+*/
int mp_util_svc_get_video_duration_time(const int nVideoItemIndex)
{
if (!VideoItemList) {
return nDurationTime;
}
+/**
+* Get last played position
+* @param nVideoItemIndex : index of the video
+* @return last played position
+*/
int mp_util_svc_get_video_last_played_pos(const int nVideoItemIndex)
{
if (!VideoItemList) {
return (int) nLastPlayedTime;
}
+/**
+* Get video item size
+* @param nVideoItemIndex : index of the video
+* @return video file size
+*/
unsigned long long mp_util_svc_get_video_item_size(const int
nVideoItemIndex)
{
}
+/**
+* Get video item width
+* @param nVideoItemIndex : index of the video
+* @return video width
+*/
int mp_util_svc_get_video_item_width(const int nVideoItemIndex)
{
if (!VideoItemList) {
return nWidth;
}
+/**
+* Get video item height
+* @param nVideoItemIndex : index of the video
+* @return video height
+*/
int mp_util_svc_get_video_item_height(const int nVideoItemIndex)
{
if (!VideoItemList) {
return nHeight;
}
+/**
+* Get video item modified time
+* @param nVideoItemIndex : index of the video
+* @return modified time string
+*/
char *mp_util_svc_get_video_item_modified_time(const int nVideoItemIndex)
{
if (!VideoItemList) {
return NULL;
}
+/**
+* Get video list size
+* @return video list size
+*/
int mp_util_svc_get_video_list_size_for_checking_index(void)
{
if (!VideoItemList) {
return (int) eina_list_count(VideoItemList);
}
+/**
+* Get video items size by type
+* @return video items size
+*/
int mp_util_svc_get_number_of_video_item_by_type(void)
{
return nNumberOfVideoItemByType;
}
+/**
+* Get video folder list from db by type
+* @param nSortType : sort type
+* @param nItemType : list view type
+* @return result
+*/
bool mp_util_svc_extract_video_folder_list_by_type(int nSortType,
int nItemType)
{
return TRUE;
}
+/**
+* Get personal video folder list
+* @param nSortType : sort type
+* @param bPersonal : true/false
+* @return result
+*/
bool mp_util_svc_extract_personal_video_folder_list(int nSortType,
bool bPersonal)
{
return TRUE;
}
-
+/**
+* Free video folder list
+* @return result
+*/
bool mp_util_svc_destory_video_folder_list(void)
{
if (!VideoFolderList) {
return TRUE;
}
+/**
+* Get video folder size
+* @return result
+*/
int mp_util_svc_get_video_folder_size(void)
{
if (!VideoFolderList) {
return 0;
}
+/**
+* Get Video folder name
+* @param nVideoFolderIndex : index of the folder
+* @return folder name
+*/
char *mp_util_svc_get_video_folder_name(int nVideoFolderIndex)
{
if (!VideoFolderList) {
return NULL;
}
+/**
+* Get Video folder url
+* @param nVideoFolderIndex : index of the folder
+* @return folder url string
+*/
+
char *mp_util_svc_get_video_folder_url(int nVideoFolderIndex)
{
if (!VideoFolderList) {
return NULL;
}
+/**
+* Get Video folder id
+* @param nVideoFolderIndex : index of the folder
+* @return folder id string
+*/
char *mp_util_svc_get_video_folder_id(int nVideoFolderIndex)
{
if (!VideoFolderList) {
return NULL;
}
+/**
+* Assing thumbnail update callback function
+* @param nVideoItemIndex : index of the video
+* @param pUserCallbackFunc : callback function to register
+* @param pUserData : user data for callback argument
+* @return folder name
+*/
void mp_util_svc_register_thumbnail_update_func(int nVideoItemIndex,
void *pUserCallbackFunc,
void *pUserData)
}
}
+/**
+* Cancel thumbnail update
+* @param nVideoItemIndex : index of the video
+*/
void mp_util_svc_cancel_thumbnail_update(int nVideoItemIndex)
{
VideoLogInfo("nVideoItemIndex : %d", nVideoItemIndex);
}
}
+/**
+* Update thumbnail info to DB
+* @param nVideoItemIndex : index of the video
+*/
void mp_util_svc_update_thumbnail_info(const int nVideoItemIndex)
{
if (!VideoItemList) {
}
}
+/**
+* Get Video item ID
+* @param nVideoItemIndex : index of the video
+* @return video id string
+*/
char *mp_util_svc_get_video_id_by_index(const int nVideoItemIndex)
{
if (!VideoItemList) {
return szMediaId;
}
+/**
+* Get folder storage of the video folder
+* @param nVideoFolderIndex : index of the video folder
+* @return storage type
+*/
+
MpMediaStorageType mp_util_svc_get_folder_storage(const int
nVideoFolderIndex)
{
}
+/**
+* Get folder storage of the video
+* @param nVideoItemIndex : index of the video
+* @return storage type
+*/
MpMediaStorageType mp_util_svc_get_video_storage(const int nVideoItemIndex)
{
MpMediaStorageType storage_local = MP_MEDIA_TYPE_STORAGE_UNKNOWN;
return storage_local;
}
+/**
+* Is cloud storage
+* @param nVideoItemIndex : index of the video
+* @return true/false
+*/
bool mp_util_svc_is_cloud_storage(const int nVideoItemIndex)
{
VideoLogInfo("disable cloud module.");
return FALSE;
}
+/**
+* Callback function for DB update
+* @param nError : error code from content
+* @param nPid : process ID
+* @param nUpdateItem : file or directory
+* @param nMediaType : type of the media (video/image)
+* @param szUuid : ID of the media
+* @param szPath : path of the media
+* @param szMimeType : Mime type of the media
+* @param pUserData : user data
+*/
void mp_util_svc_update_database_cb(media_content_error_e nError, int nPid,
media_content_db_update_item_type_e
nUpdateItem,
}
+/**
+* Register Callback function for DB update
+* @param pUpdateDbCbFunc : callback function
+* @return result
+*/
bool mp_util_svc_set_update_db_cb_func(UpdateDatabaseCbFunc
pUpdateDbCbFunc)
{
}
+/**
+* unregister Callback function for DB update
+*/
void mp_util_svc_unset_update_db_cb_func(void)
{
///////////////////////////////////////////////////////
// For livebox list
-
static bool mp_util_svc_iterate_for_last_played_video_item_cb(media_info_h
pMediaItem,
void