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.
26 #include "ewk_media_playback_info_product.h"
28 #include "build/build_config.h"
29 #include "private/ewk_private.h"
31 const char* ewk_media_playback_info_media_url_get(
32 Ewk_Media_Playback_Info* data) {
37 const char* ewk_media_playback_info_mime_type_get(
38 Ewk_Media_Playback_Info* data) {
43 const char* ewk_media_playback_info_translated_url_get(
44 Ewk_Media_Playback_Info* data) {
49 const char* ewk_media_playback_info_drm_info_get(
50 Ewk_Media_Playback_Info* data) {
55 void ewk_media_playback_info_media_resource_acquired_set(
56 Ewk_Media_Playback_Info* data,
57 Eina_Bool media_resource_acquired) {
61 void ewk_media_playback_info_translated_url_set(Ewk_Media_Playback_Info* data,
62 const char* translated_url) {
66 void ewk_media_playback_info_drm_info_set(Ewk_Media_Playback_Info* data,
67 const char* drm_info) {
71 const int ewk_media_playback_info_video_id_get(Ewk_Media_Playback_Info* data)
76 Ewk_Media_Playback_Info* ewkMediaPlaybackInfoCreate(const int player_id,
78 const char* mime_type)
80 #if BUILDFLAG(IS_TIZEN_TV)
84 LOG_EWK_API_MOCKUP("Only for Tizen TV.");
90 Eina_Bool ewk_media_playback_info_media_resource_acquired_get(
91 Ewk_Media_Playback_Info* data)
93 #if BUILDFLAG(IS_TIZEN_TV)
97 LOG_EWK_API_MOCKUP("Only for Tizen TV.");
102 void ewkMediaPlaybackInfoDelete(Ewk_Media_Playback_Info* data)
104 #if BUILDFLAG(IS_TIZEN_TV)
105 LOG_EWK_API_MOCKUP();
107 LOG_EWK_API_MOCKUP("Only for Tizen TV.");