2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 using System.Collections.Generic;
22 using System.Threading.Tasks;
24 namespace Tizen.Multimedia
27 /// This class provides properties of the metadata information of the given media
31 internal Metadata(MetadataBundle metadata)
33 Duration = metadata.Duration;
34 VideoBitrate = metadata.VideoBitrate;
35 VideoFPS = metadata.VideoFPS;
36 VideoWidth = metadata.VideoWidth;
37 VideoHeight = metadata.VideoHeight;
38 VideoStreamCount = metadata.Videostreamcount;
39 AudioBitrate = metadata.AudioBitrate;
40 AudioChannels = metadata.AudioChannels;
41 AudioSamplerate = metadata.AudioSamplerate;
42 AudioBitPerSample = metadata.Audiobitpersample;
43 AudioStreamCount = metadata.Audiostreamcount;
44 Artist = metadata.Artist;
45 Title = metadata.Title;
46 Album = metadata.Album;
47 AlbumArtist = metadata.AlbumArtist;
48 Genre = metadata.Genre;
49 Author = metadata.Author;
50 Copyright = metadata.Copyright;
52 Description = metadata.Description;
53 Comment = metadata.Comment;
54 TrackNumber = metadata.Tracknumber;
55 Classification = metadata.Classification;
56 Rating = metadata.Rating;
57 Longitude = metadata.Longitude;
58 Latitude = metadata.Latitude;
59 Altitude = metadata.Altitude;
60 Conductor = metadata.Conductor;
61 Unsynclyric = metadata.Unsynclyric;
62 SyncLyricNumber = metadata.SyncLyricNumber;
63 RecordingDate = metadata.Recordingdate;
64 Rotate = metadata.Rotate;
65 VideoCodec = metadata.VideoCodec;
66 AudioCodec = metadata.AudioCodec;
67 Content360 = metadata.content360;
72 public readonly string Duration;
76 public readonly string VideoBitrate;
80 public readonly string VideoFPS;
84 public readonly string VideoWidth;
88 public readonly string VideoHeight;
90 /// Video stream existence
92 public readonly string VideoStreamCount;
96 public readonly string AudioBitrate;
100 public readonly string AudioChannels;
104 public readonly string AudioSamplerate;
106 /// Audio bit per sample
108 public readonly string AudioBitPerSample;
110 /// Audio stream existence
112 public readonly string AudioStreamCount;
116 public readonly string Artist;
120 public readonly string Title;
124 public readonly string Album;
128 public readonly string AlbumArtist;
132 public readonly string Genre;
136 public readonly string Author;
140 public readonly string Copyright;
144 public readonly string Date;
148 public readonly string Description;
152 public readonly string Comment;
154 /// Track number information
156 public readonly string TrackNumber;
160 public readonly string Classification;
164 public readonly string Rating;
168 public readonly string Longitude;
172 public readonly string Latitude;
176 public readonly string Altitude;
180 public readonly string Conductor;
182 /// Unsynchronized lyrics
184 public readonly string Unsynclyric;
186 /// Synchronized lyrics number
188 public readonly string SyncLyricNumber;
192 public readonly string RecordingDate;
194 /// Rotate(orientation) information
196 public readonly string Rotate;
200 public readonly string VideoCodec;
204 public readonly string AudioCodec;
206 /// 360 content information
208 public readonly string Content360;
211 internal class MetadataBundle
213 internal string Duration;
214 internal string VideoBitrate;
215 internal string VideoFPS;
216 internal string VideoWidth;
217 internal string VideoHeight;
218 internal string Videostreamcount;
219 internal string AudioBitrate;
220 internal string AudioChannels;
221 internal string AudioSamplerate;
222 internal string Audiobitpersample;
223 internal string Audiostreamcount;
224 internal string Artist;
225 internal string Title;
226 internal string Album;
227 internal string AlbumArtist;
228 internal string Genre;
229 internal string Author;
230 internal string Copyright;
231 internal string Date;
232 internal string Description;
233 internal string Comment;
234 internal string Tracknumber;
235 internal string Classification;
236 internal string Rating;
237 internal string Longitude;
238 internal string Latitude;
239 internal string Altitude;
240 internal string Conductor;
241 internal string Unsynclyric;
242 internal string SyncLyricNumber;
243 internal string Recordingdate;
244 internal string Rotate;
245 internal string VideoCodec;
246 internal string AudioCodec;
247 internal string content360;