瀏覽代碼

VLCMedia: add new keys for total track number, director, season, episode, show name, actors, album artist, disc number

Felix Paul Kühne 10 年之前
父節點
當前提交
a75c342606
共有 3 個文件被更改,包括 38 次插入0 次删除
  1. 8 0
      Headers/Public/VLCMedia.h
  2. 6 0
      NEWS
  3. 24 0
      Sources/VLCMedia.m

+ 8 - 0
Headers/Public/VLCMedia.h

@@ -50,6 +50,14 @@ extern NSString *const VLCMetaInformationEncodedBy;      /* NSString */
 extern NSString *const VLCMetaInformationArtworkURL;     /* NSString */
 extern NSString *const VLCMetaInformationArtwork;        /* NSImage  */
 extern NSString *const VLCMetaInformationTrackID;        /* NSString */
+extern NSString *const VLCMetaInformationTrackTotal;     /* NSString */
+extern NSString *const VLCMetaInformationDirector;       /* NSString */
+extern NSString *const VLCMetaInformationSeason;         /* NSString */
+extern NSString *const VLCMetaInformationEpisode;        /* NSString */
+extern NSString *const VLCMetaInformationShowName;       /* NSString */
+extern NSString *const VLCMetaInformationActors;         /* NSString */
+extern NSString *const VLCMetaInformationAlbumArtist;    /* NSString */
+extern NSString *const VLCMetaInformationDiscNumber;     /* NSString */
 
 /* Notification Messages */
 /**

+ 6 - 0
NEWS

@@ -5,6 +5,12 @@ New APIs:
   - added properties: titleDescriptions, indexOfLongestTitle
   - added selector: chaptersForTitleIndex:
 
+- VLCMedia
+  - added keys: VLCMetaInformationTrackTotal, VLCMetaInformationDirector,
+                VLCMetaInformationSeason, VLCMetaInformationEpisode,
+                VLCMetaInformationShowName, VLCMetaInformationActors,
+                VLCMetaInformationAlbumArtist, VLCMetaInformationDiscNumber
+
 Deprecated APIs:
 - VLCMediaPlayer
   - titles, chaptersForTitleIndex:

+ 24 - 0
Sources/VLCMedia.m

@@ -51,6 +51,14 @@ NSString *const VLCMetaInformationEncodedBy      = @"encodedBy";
 NSString *const VLCMetaInformationArtworkURL     = @"artworkURL";
 NSString *const VLCMetaInformationArtwork        = @"artwork";
 NSString *const VLCMetaInformationTrackID        = @"trackID";
+NSString *const VLCMetaInformationTrackTotal     = @"trackTotal";
+NSString *const VLCMetaInformationDirector       = @"director";
+NSString *const VLCMetaInformationSeason         = @"season";
+NSString *const VLCMetaInformationEpisode        = @"episode";
+NSString *const VLCMetaInformationShowName       = @"showName";
+NSString *const VLCMetaInformationActors         = @"actors";
+NSString *const VLCMetaInformationAlbumArtist    = @"AlbumArtist";
+NSString *const VLCMetaInformationDiscNumber     = @"discNumber";
 
 /* Notification Messages */
 NSString *const VLCMediaMetaChanged              = @"VLCMediaMetaChanged";
@@ -706,6 +714,14 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
                 VLCStringToMeta(Publisher),
                 VLCStringToMeta(ArtworkURL),
                 VLCStringToMeta(TrackID),
+                VLCStringToMeta(TrackTotal),
+                VLCStringToMeta(Director),
+                VLCStringToMeta(Season),
+                VLCStringToMeta(Episode),
+                VLCStringToMeta(ShowName),
+                VLCStringToMeta(Actors),
+                VLCStringToMeta(AlbumArtist),
+                VLCStringToMeta(DiscNumber),
                 nil];
 #undef VLCStringToMeta
     }
@@ -732,6 +748,14 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
     VLCMetaToString(Publisher, type);
     VLCMetaToString(ArtworkURL, type);
     VLCMetaToString(TrackID, type);
+    VLCMetaToString(TrackTotal, type);
+    VLCMetaToString(Director, type);
+    VLCMetaToString(Season, type);
+    VLCMetaToString(Episode, type);
+    VLCMetaToString(ShowName, type);
+    VLCMetaToString(Actors, type);
+    VLCMetaToString(AlbumArtist, type);
+    VLCMetaToString(DiscNumber, type);
 #undef VLCMetaToString
     return nil;
 }