2 * Copyright (C) 2022 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.h
28 * @brief This file describes the ewk media playback info API.
31 #ifndef ewk_media_playback_info_h
32 #define ewk_media_playback_info_h
41 typedef struct _Ewk_Media_Playback_Info Ewk_Media_Playback_Info;
46 * @param meia playback info's structure
48 * @return @c media url
50 EXPORT_API const char* ewk_media_playback_info_media_url_get(
51 Ewk_Media_Playback_Info* data);
54 * Get mime type of media.
56 * @param meia playback info's structure
58 * @return @c mime type
60 EXPORT_API const char* ewk_media_playback_info_mime_type_get(
61 Ewk_Media_Playback_Info* data);
64 * Get translated url of media.
66 * @param media playback info's structure
68 * @return @c translated url
70 EXPORT_API const char* ewk_media_playback_info_translated_url_get(
71 Ewk_Media_Playback_Info* data);
74 * Get drm info of media.
76 * @param media playback info's structure
80 EXPORT_API const char* ewk_media_playback_info_drm_info_get(
81 Ewk_Media_Playback_Info* data);
84 * Set media resource acquired of media.
86 * @param media playback info's structure
88 EXPORT_API void ewk_media_playback_info_media_resource_acquired_set(
89 Ewk_Media_Playback_Info* data,
90 Eina_Bool media_resource_acquired);
93 * Set translated url of media.
95 * @param media playback info's structure
97 EXPORT_API void ewk_media_playback_info_translated_url_set(
98 Ewk_Media_Playback_Info* data,
99 const char* translated_url);
102 * Set drm info of media.
104 * @param media playback info's structure
106 EXPORT_API void ewk_media_playback_info_drm_info_set(
107 Ewk_Media_Playback_Info* data,
108 const char* drm_info);
113 #endif // ewk_media_playback_info_h