[M108 Aura Migration] Add media playback ewk api
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_media_playback_info.h
1 /*
2  * Copyright (C) 2022 Samsung Electronics. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
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.
12  *
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.
24  */
25
26 /**
27  * @file    ewk_media_playback_info.h
28  * @brief   This file describes the ewk media playback info API.
29  */
30
31 #ifndef ewk_media_playback_info_h
32 #define ewk_media_playback_info_h
33 #include <Eina.h>
34 #include <Evas.h>
35 #include <tizen.h>
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 typedef struct _Ewk_Media_Playback_Info Ewk_Media_Playback_Info;
42
43 /**
44  * Get url of media.
45  *
46  * @param meia playback info's structure
47  *
48  * @return @c media url
49  */
50 EXPORT_API const char* ewk_media_playback_info_media_url_get(
51     Ewk_Media_Playback_Info* data);
52
53 /**
54  * Get mime type of media.
55  *
56  * @param meia playback info's structure
57  *
58  * @return @c mime type
59  */
60 EXPORT_API const char* ewk_media_playback_info_mime_type_get(
61     Ewk_Media_Playback_Info* data);
62
63 /**
64  * Get translated url of media.
65  *
66  * @param media playback info's structure
67  *
68  * @return @c translated url
69  */
70 EXPORT_API const char* ewk_media_playback_info_translated_url_get(
71     Ewk_Media_Playback_Info* data);
72
73 /**
74  * Get drm info of media.
75  *
76  * @param media playback info's structure
77  *
78  * @return @c drm info
79  */
80 EXPORT_API const char* ewk_media_playback_info_drm_info_get(
81     Ewk_Media_Playback_Info* data);
82
83 /**
84  * Set media resource acquired of media.
85  *
86  * @param media playback info's structure
87  */
88 EXPORT_API void ewk_media_playback_info_media_resource_acquired_set(
89     Ewk_Media_Playback_Info* data,
90     Eina_Bool media_resource_acquired);
91
92 /**
93  * Set translated url of media.
94  *
95  * @param media playback info's structure
96  */
97 EXPORT_API void ewk_media_playback_info_translated_url_set(
98     Ewk_Media_Playback_Info* data,
99     const char* translated_url);
100
101 /**
102  * Set drm info of media.
103  *
104  * @param media playback info's structure
105  */
106 EXPORT_API void ewk_media_playback_info_drm_info_set(
107     Ewk_Media_Playback_Info* data,
108     const char* drm_info);
109
110 #ifdef __cplusplus
111 }
112 #endif
113 #endif  // ewk_media_playback_info_h
114