NUGU SDK Linux
1.7.6
nugu_media.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef __NUGU_MEDIA_H__
18
#define __NUGU_MEDIA_H__
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
36
#define NUGU_SET_VOLUME_MIN 0
37
41
#define NUGU_SET_VOLUME_MAX 100
42
46
#define NUGU_SET_VOLUME_DEFAULT 50
47
51
#define NUGU_SET_LOADING_TIMEOUT 5
52
56
enum
nugu_media_status
{
57
NUGU_MEDIA_STATUS_STOPPED
,
58
NUGU_MEDIA_STATUS_READY
,
59
NUGU_MEDIA_STATUS_PLAYING
,
60
NUGU_MEDIA_STATUS_PAUSED
61
};
62
66
enum
nugu_media_event
{
67
NUGU_MEDIA_EVENT_MEDIA_SOURCE_CHANGED
,
68
NUGU_MEDIA_EVENT_MEDIA_INVALID
,
69
NUGU_MEDIA_EVENT_MEDIA_LOAD_FAILED
,
70
NUGU_MEDIA_EVENT_MEDIA_LOADED
,
71
NUGU_MEDIA_EVENT_MEDIA_UNDERRUN
,
72
NUGU_MEDIA_EVENT_MEDIA_BUFFER_FULL
,
73
NUGU_MEDIA_EVENT_END_OF_STREAM
,
74
NUGU_MEDIA_EVENT_MAX
75
};
76
80
typedef
void (*
NuguMediaStatusCallback
)(
enum
nugu_media_status
status,
81
void
*userdata);
82
86
typedef
void (*
NuguMediaEventCallback
)(
enum
nugu_media_event
event,
87
void
*userdata);
88
93
#ifdef __cplusplus
94
}
95
#endif
96
97
#endif
nugu_media_event
nugu_media_event
media event type
Definition:
nugu_media.h:66
NuguMediaEventCallback
void(* NuguMediaEventCallback)(enum nugu_media_event event, void *userdata)
Callback type for media event.
Definition:
nugu_media.h:86
NuguMediaStatusCallback
void(* NuguMediaStatusCallback)(enum nugu_media_status status, void *userdata)
Callback type for media status.
Definition:
nugu_media.h:80
nugu_media_status
nugu_media_status
media status
Definition:
nugu_media.h:56
NUGU_MEDIA_EVENT_MEDIA_LOAD_FAILED
@ NUGU_MEDIA_EVENT_MEDIA_LOAD_FAILED
Definition:
nugu_media.h:69
NUGU_MEDIA_EVENT_MEDIA_LOADED
@ NUGU_MEDIA_EVENT_MEDIA_LOADED
Definition:
nugu_media.h:70
NUGU_MEDIA_EVENT_MEDIA_BUFFER_FULL
@ NUGU_MEDIA_EVENT_MEDIA_BUFFER_FULL
Definition:
nugu_media.h:72
NUGU_MEDIA_EVENT_MEDIA_INVALID
@ NUGU_MEDIA_EVENT_MEDIA_INVALID
Definition:
nugu_media.h:68
NUGU_MEDIA_EVENT_MEDIA_UNDERRUN
@ NUGU_MEDIA_EVENT_MEDIA_UNDERRUN
Definition:
nugu_media.h:71
NUGU_MEDIA_EVENT_END_OF_STREAM
@ NUGU_MEDIA_EVENT_END_OF_STREAM
Definition:
nugu_media.h:73
NUGU_MEDIA_EVENT_MEDIA_SOURCE_CHANGED
@ NUGU_MEDIA_EVENT_MEDIA_SOURCE_CHANGED
Definition:
nugu_media.h:67
NUGU_MEDIA_STATUS_READY
@ NUGU_MEDIA_STATUS_READY
Definition:
nugu_media.h:58
NUGU_MEDIA_STATUS_STOPPED
@ NUGU_MEDIA_STATUS_STOPPED
Definition:
nugu_media.h:57
NUGU_MEDIA_STATUS_PAUSED
@ NUGU_MEDIA_STATUS_PAUSED
Definition:
nugu_media.h:60
NUGU_MEDIA_STATUS_PLAYING
@ NUGU_MEDIA_STATUS_PLAYING
Definition:
nugu_media.h:59
include
base
nugu_media.h
Generated on Tue Jun 25 2024 00:59:08 for NUGU SDK Linux by
1.9.1