[Metadata] Add new API and deprecate old one (#625)
authorhsgwon <haesu.gwon@samsung.com>
Tue, 8 Jan 2019 08:01:53 +0000 (17:01 +0900)
committerGitHub <noreply@github.com>
Tue, 8 Jan 2019 08:01:53 +0000 (17:01 +0900)
* [Metadata] Add new API and deprecate old one

src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs [changed mode: 0755->0644]
src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorAttr.cs

old mode 100755 (executable)
new mode 100644 (file)
index c81013c..e142b35
@@ -196,7 +196,8 @@ namespace Tizen.Multimedia
             Album = extractor.GetMetadata(MetadataExtractorAttr.Album);
             AlbumArtist = extractor.GetMetadata(MetadataExtractorAttr.AlbumArtist);
             Genre = extractor.GetMetadata(MetadataExtractorAttr.Genre);
-            Author = extractor.GetMetadata(MetadataExtractorAttr.Author);
+            Author = extractor.GetMetadata(MetadataExtractorAttr.Composer);
+            Composer = extractor.GetMetadata(MetadataExtractorAttr.Composer);
             Copyright = extractor.GetMetadata(MetadataExtractorAttr.Copyright);
             DateReleased = extractor.GetMetadata(MetadataExtractorAttr.ReleaseDate);
             Description = extractor.GetMetadata(MetadataExtractorAttr.Description);
@@ -278,9 +279,17 @@ namespace Tizen.Multimedia
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         /// <value>A string representing the author, or null if the information does not exist.</value>
+        [Obsolete("Please do not use! This will be deprecated. Please use Composer instead.")]
         public string Author { get; }
 
         /// <summary>
+        /// Gets the composer of the media.
+        /// </summary>
+        /// <since_tizen> 6 </since_tizen>
+        /// <value>A string representing the composer, or null if the information does not exist.</value>
+        public string Composer { get; }
+
+        /// <summary>
         /// Gets the copyright of the media.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
index 574e7a4..c2d325c 100644 (file)
@@ -34,7 +34,7 @@ namespace Tizen.Multimedia
         Album,
         AlbumArtist,
         Genre,
-        Author,
+        Composer,
         Copyright,
         ReleaseDate,
         Description,