tv-service
0.1.0
Main Page
APIs
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
tv_service_proxy_live.h
Go to the documentation of this file.
1
/*
2
.*
3
.* Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
4
.*
5
.* tv-service TV Service Proxy live
6
.*
7
.* Filename: tv_service_proxy_live.h
8
.* Description: TV Service proxy live client
9
.* Contact: Tan Yuehui <yuehui.tan@samsung.com>,Liu Kun <k2.liu@samsung.com>
10
.*
11
.* Licensed under the Apache License, Version 2.0 (the "License");
12
.* you may not use this file except in compliance with the License.
13
.* You may obtain a copy of the License at
14
.*
15
.* http://www.apache.org/licenses/LICENSE-2.0
16
.*
17
.* Unless required by applicable law or agreed to in writing, software
18
.* distributed under the License is distributed on an "AS IS" BASIS,
19
.* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
.* See the License for the specific language governing permissions and
21
.* limitations under the License.
22
.*
23
.*/
24
29
#ifndef __TV_SERVICE_PROXY_LIVE_H__
30
#define __TV_SERVICE_PROXY_LIVE_H__
31
32
/*===========================================================================================
33
| |
34
| INCLUDE FILES |
35
| |
36
========================================================================================== */
37
#include <glib.h>
38
#include "
tv_service_proxy_base.h
"
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
44
/*===========================================================================================
45
| |
46
| GLOBAL DEFINITIONS AND DECLARATIONS |
47
| |
48
========================================================================================== */
49
54
typedef
enum
55
{
56
TV_SERVICE_LIVE_EVENT_BEGIN
,
/* live event tune start*/
57
TV_SERVICE_LIVE_EVENT_TUNER_LOCK
,
/* live event tune lock result*/
58
TV_SERVICE_LIVE_EVENT_CHANNEL_LOCK
,
/* live event channel lock(video and audio mute)*/
59
TV_SERVICE_LIVE_EVENT_CHANNEL_UNLOCK
,
/* live event channel unlock*/
60
TV_SERVICE_LIVE_EVENT_AUTO_DESTROY
,
/* live event auto destroy*/
61
TV_SERVICE_LIVE_EVENT_RESOLUTION
/* live event resolution*/
62
}
TvServiceLiveEvent
;
63
68
typedef
struct
69
{
70
gint
width
;
71
gint
height
;
72
}
TvServiceResolutionData
;
73
74
typedef
gpointer
TvServiceLive
;
75
typedef
void (*
TvServiceLiveCallback
) (
TvServiceLiveEvent
event, gpointer user_data,
const
gpointer data);
76
77
/*===========================================================================================
78
| |
79
| GLOBAL FUNCTION PROTOTYPES |
80
| |
81
========================================================================================== */
96
gint
tv_service_live_create
(TvServiceLive * live);
97
110
gint
tv_service_live_register_callback
(TvServiceLive live,
TvServiceLiveCallback
callback_func, gpointer user_data);
111
123
gint
tv_service_live_destroy
(TvServiceLive live);
124
141
gint
tv_service_live_tune_full
(TvServiceLive live, gint freq, gint mod, gint apid, gint vpid, gint ppid);
142
154
gint
tv_service_live_tune
(TvServiceLive live, gint service_id);
155
168
gint
tv_service_live_tune_up
(TvServiceLive live,
TvServiceChannelMode
mode,
TvServiceAntenna
type);
169
182
gint
tv_service_live_tune_down
(TvServiceLive live,
TvServiceChannelMode
mode,
TvServiceAntenna
type);
183
195
int
tv_service_live_get_service_id
(TvServiceLive live, gint * service_id);
196
209
gint
tv_service_live_set_antenna_type
(TvServiceLive live,
TvServiceAntenna
type);
210
222
gint
tv_service_live_get_antenna_type
(TvServiceLive live,
TvServiceAntenna
* type);
223
235
gint
tv_service_live_set_audio_mute
(TvServiceLive live, gboolean mute);
236
237
249
gint
tv_service_live_get_audio_mute
(TvServiceLive live, gboolean * mute);
250
262
gint
tv_service_live_set_volume
(TvServiceLive live, gdouble volume);
263
275
gint
tv_service_live_get_volume
(TvServiceLive live, gdouble * volume);
276
289
gint
tv_service_live_set_window_overlay
(TvServiceLive live, gpointer window_id);
301
gint
tv_service_live_set_video_mute
(TvServiceLive live, gboolean mute);
302
314
gint
tv_service_live_get_video_mute
(TvServiceLive live, gboolean * mute);
315
330
gint
tv_service_live_tune_by_program_number
(TvServiceLive live, gint freq, gint mod, gint pro_num);
331
342
gint
tv_service_live_get_last_channel
(gint * service_id);
343
357
gint
tv_service_live_tune_locked_channel
(TvServiceLive live, gint service_id, gchar * password);
358
363
gboolean
tv_service_live_tune_pause
(TvServiceLive live);
364
gboolean
tv_service_live_tune_resume
(TvServiceLive live);
365
366
#ifdef __cplusplus
367
}
368
#endif
369
370
#endif
371
src
include
tv_service_proxy_live.h
Generated on Fri Sep 15 2017 21:20:46 for tv-service by
1.8.2