Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.Recorder / Recorder / RecorderEnums.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics 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 using System;
18
19 namespace Tizen.Multimedia
20 {
21     /// <summary>
22     /// Enumeration for Audio Codec.
23     /// </summary>
24     /// <since_tizen> 3 </since_tizen>
25     public enum RecorderAudioCodec
26     {
27         /// <summary>
28         /// Disable Audio track.
29         /// </summary>
30         Disable = -1,
31         /// <summary>
32         /// AMR codec.
33         /// </summary>
34         Amr = 0,
35         /// <summary>
36         /// AAC codec.
37         /// </summary>
38         Aac,
39         /// <summary>
40         /// Vorbis codec.
41         /// </summary>
42         Vorbis,
43         /// <summary>
44         /// PCM codec.
45         /// </summary>
46         Pcm,
47         /// <summary>
48         /// The mp3 codec.
49         /// </summary>
50         Mp3
51     }
52
53     /// <summary>
54     /// Enumeration for Audio capture devices.
55     /// </summary>
56     /// <since_tizen> 3 </since_tizen>
57     public enum RecorderAudioDevice
58     {
59         /// <summary>
60         /// Capture audio from Mic device.
61         /// </summary>
62         Mic,
63         /// <summary>
64         /// Capture audio from modem.
65         /// </summary>
66         Modem
67     }
68
69     /// <summary>
70     /// Enumeration for the file container format.
71     /// </summary>
72     /// <since_tizen> 3 </since_tizen>
73     public enum RecorderFileFormat
74     {
75         /// <summary>
76         /// 3GP file format.
77         /// </summary>
78         ThreeGp,
79         /// <summary>
80         /// MP4 file format.
81         /// </summary>
82         Mp4,
83         /// <summary>
84         /// AMR file format.
85         /// </summary>
86         Amr,
87         /// <summary>
88         /// ADTS file format.
89         /// </summary>
90         Adts,
91         /// <summary>
92         /// WAV file format.
93         /// </summary>
94         Wav,
95         /// <summary>
96         /// OGG file format.
97         /// </summary>
98         Ogg,
99         /// <summary>
100         /// M2TS file format.
101         /// </summary>
102         M2ts
103     }
104
105     /// <summary>
106     /// Enumeration for the recorder policy.
107     /// </summary>
108     /// <since_tizen> 3 </since_tizen>
109     public enum RecorderPolicy
110     {
111         /// <summary>
112         /// None.
113         /// </summary>
114         None = 0,
115         /// <summary>
116         /// Security policy.
117         /// </summary>
118         Security = 4,
119         /// <summary>
120         /// Resource conflict policy.
121         /// </summary>
122         ResourceConflict = 5
123     }
124
125     /// <summary>
126     /// Enumeration for the recording limit.
127     /// </summary>
128     /// <since_tizen> 3 </since_tizen>
129     public enum RecordingLimitType
130     {
131         /// <summary>
132         /// Time limit in seconds of recording file
133         /// </summary>
134         Time,
135         /// <summary>
136         /// Size limit in KB(KiloBytes) of recording file.
137         /// </summary>
138         Size,
139         /// <summary>
140         /// No free space in storage.
141         /// </summary>
142         Space
143     }
144
145     /// <summary>
146     /// Enumeration for recorder states.
147     /// </summary>
148     /// <since_tizen> 3 </since_tizen>
149     public enum RecorderState
150     {
151         /// <summary>
152         /// Recorder is not created.
153         /// </summary>
154         None,
155         /// <summary>
156         /// Recorder is created, but not prepared.
157         /// </summary>
158         Created,
159         /// <summary>
160         /// Recorder is ready to record. In case of video recorder,
161         /// preview display will be shown.
162         /// </summary>
163         Ready,
164         /// <summary>
165         /// Recorder is recording media.
166         /// </summary>
167         Recording,
168         /// <summary>
169         /// Recorder is paused while recording media.
170         /// </summary>
171         Paused
172     }
173
174     /// <summary>
175     /// Enumeration for video codec.
176     /// </summary>
177     /// <since_tizen> 3 </since_tizen>
178     public enum RecorderVideoCodec
179     {
180         /// <summary>
181         /// H263 codec.
182         /// </summary>
183         H263,
184         /// <summary>
185         /// H264 codec.
186         /// </summary>
187         H264,
188         /// <summary>
189         /// MPEG4 codec.
190         /// </summary>
191         Mpeg4,
192         /// <summary>
193         /// Theora codec.
194         /// </summary>
195         Theora
196     }
197
198     /// <summary>
199     /// Enumeration for recorder failure error.
200     /// </summary>
201     /// <since_tizen> 3 </since_tizen>
202     public enum RecorderErrorCode
203     {
204         /// <summary>
205         /// Device Error.
206         /// </summary>
207         DeviceError = RecorderError.DeviceError,
208         /// <summary>
209         /// Internal error.
210         /// </summary>
211         InvalidOperation = RecorderError.InvalidOperation,
212         /// <summary>
213         /// Out of memory.
214         /// </summary>
215         OutOfMemory = RecorderError.OutOfMemory
216     }
217 }