b7baf7ed6f36bd624391e9561205430d2024f367
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_media_playback_info.cc
1 /*
2  * Copyright (C) 2016 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 #include "ewk_media_playback_info_product.h"
27
28 #include "build/build_config.h"
29 #include "private/ewk_private.h"
30
31 const char* ewk_media_playback_info_media_url_get(
32     Ewk_Media_Playback_Info* data) {
33   LOG_EWK_API_MOCKUP();
34   return NULL;
35 }
36
37 const char* ewk_media_playback_info_mime_type_get(
38     Ewk_Media_Playback_Info* data) {
39   LOG_EWK_API_MOCKUP();
40   return NULL;
41 }
42
43 const char* ewk_media_playback_info_translated_url_get(
44     Ewk_Media_Playback_Info* data) {
45   LOG_EWK_API_MOCKUP();
46   return NULL;
47 }
48
49 const char* ewk_media_playback_info_drm_info_get(
50     Ewk_Media_Playback_Info* data) {
51   LOG_EWK_API_MOCKUP();
52   return NULL;
53 }
54
55 void ewk_media_playback_info_media_resource_acquired_set(
56     Ewk_Media_Playback_Info* data,
57     Eina_Bool media_resource_acquired) {
58   LOG_EWK_API_MOCKUP();
59 }
60
61 void ewk_media_playback_info_translated_url_set(Ewk_Media_Playback_Info* data,
62                                                 const char* translated_url) {
63   LOG_EWK_API_MOCKUP();
64 }
65
66 void ewk_media_playback_info_drm_info_set(Ewk_Media_Playback_Info* data,
67                                           const char* drm_info) {
68   LOG_EWK_API_MOCKUP();
69 }
70
71 const int ewk_media_playback_info_video_id_get(Ewk_Media_Playback_Info* data)
72 {
73   LOG_EWK_API_MOCKUP();
74 }
75
76 Ewk_Media_Playback_Info* ewkMediaPlaybackInfoCreate(const int player_id,
77                                                     const char* url,
78                                                     const char* mime_type)
79 {
80 #if BUILDFLAG(IS_TIZEN_TV)
81   LOG_EWK_API_MOCKUP();
82   return NULL;
83 #else
84   LOG_EWK_API_MOCKUP("Only for Tizen TV.");
85   return NULL;
86 #endif
87
88 }
89
90 Eina_Bool ewk_media_playback_info_media_resource_acquired_get(
91     Ewk_Media_Playback_Info* data)
92 {
93 #if BUILDFLAG(IS_TIZEN_TV)
94   LOG_EWK_API_MOCKUP();
95   return EINA_FALSE;
96 #else
97   LOG_EWK_API_MOCKUP("Only for Tizen TV.");
98   return EINA_FALSE;
99 #endif
100 }
101
102 void ewkMediaPlaybackInfoDelete(Ewk_Media_Playback_Info* data)
103 {
104 #if BUILDFLAG(IS_TIZEN_TV)
105   LOG_EWK_API_MOCKUP();
106 #else
107   LOG_EWK_API_MOCKUP("Only for Tizen TV.");
108 #endif
109 }