2 * Copyright (C) 2016 Samsung Electronics. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
14 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * @file ewk_media_playback_info_product.h
28 * @brief This file describes the ewk media playback info API.
31 #ifndef ewk_media_playback_info_product_h
32 #define ewk_media_playback_info_product_h
42 typedef struct _Ewk_Media_Playback_Info Ewk_Media_Playback_Info;
45 * Get video id of media.
47 * @param meia playback info's structure
51 EXPORT_API const int ewk_media_playback_info_video_id_get(
52 Ewk_Media_Playback_Info* data);
57 * @param meia playback info's structure
59 * @return @c media url
61 EXPORT_API const char* ewk_media_playback_info_media_url_get(
62 Ewk_Media_Playback_Info* data);
65 * Get mime type of media.
67 * @param meia playback info's structure
69 * @return @c mime type
71 EXPORT_API const char* ewk_media_playback_info_mime_type_get(
72 Ewk_Media_Playback_Info* data);
75 * Get translated url of media.
77 * @param media playback info's structure
79 * @return @c translated url
81 EXPORT_API const char* ewk_media_playback_info_translated_url_get(
82 Ewk_Media_Playback_Info* data);
85 * Get drm info of media.
87 * @param media playback info's structure
91 EXPORT_API const char* ewk_media_playback_info_drm_info_get(
92 Ewk_Media_Playback_Info* data);
95 * Set media resource acquired of media.
97 * @param media playback info's structure
99 EXPORT_API void ewk_media_playback_info_media_resource_acquired_set(
100 Ewk_Media_Playback_Info* data,
101 Eina_Bool media_resource_acquired);
104 * Set translated url of media.
106 * @param media playback info's structure
108 EXPORT_API void ewk_media_playback_info_translated_url_set(
109 Ewk_Media_Playback_Info* data,
110 const char* translated_url);
113 * Set drm info of media.
115 * @param media playback info's structure
117 EXPORT_API void ewk_media_playback_info_drm_info_set(
118 Ewk_Media_Playback_Info* data,
119 const char* drm_info);
121 Ewk_Media_Playback_Info* ewkMediaPlaybackInfoCreate(const int player_id,
123 const char* mime_type);
124 Eina_Bool ewk_media_playback_info_media_resource_acquired_get(
125 Ewk_Media_Playback_Info* data);
126 void ewkMediaPlaybackInfoDelete(Ewk_Media_Playback_Info* data);
131 #endif // ewk_media_playback_info_product_h