Esempio n. 1
0
 private void printMetadata(MetadataObj metadata, string prefix)
 {
     for (var i = 0; i < metadata.Length(); i++)
     {
         var entry = metadata.Get(i);
         if (entry is TextInformationFrame)
         {
             var textInformationFrame = (TextInformationFrame)entry;
             Log.Debug(TAG, prefix + String.Format("%s: value=%s", textInformationFrame.Id,
                                                   textInformationFrame.Value));
         }
         else if (entry is UrlLinkFrame)
         {
             var urlLinkFrame = (UrlLinkFrame)entry;
             Log.Debug(TAG, prefix + String.Format("%s: url=%s", urlLinkFrame.Id, urlLinkFrame.Url));
         }
         else if (entry is PrivFrame)
         {
             var privFrame = (PrivFrame)entry;
             Log.Debug(TAG, prefix + String.Format("%s: owner=%s", PrivFrame.Id, privFrame.Owner));
         }
         else if (entry is GeobFrame)
         {
             var geobFrame = (GeobFrame)entry;
             Log.Debug(TAG, prefix + String.Format("%s: mimeType=%s, filename=%s, description=%s",
                                                   GeobFrame.Id, geobFrame.MimeType, geobFrame.Filename, geobFrame.Description));
         }
         else if (entry is ApicFrame)
         {
             var apicFrame = (ApicFrame)entry;
             Log.Debug(TAG, prefix + String.Format("%s: mimeType=%s, description=%s",
                                                   ApicFrame.Id, apicFrame.MimeType, apicFrame.Description));
         }
         else if (entry is CommentFrame)
         {
             var commentFrame = (CommentFrame)entry;
             Log.Debug(TAG, prefix + String.Format("%s: language=%s, description=%s", CommentFrame.Id,
                                                   commentFrame.Language, commentFrame.Description));
         }
         else if (entry is Id3Frame)
         {
             var id3Frame = (Id3Frame)entry;
             Log.Debug(TAG, prefix + String.Format("%s", id3Frame.Id));
         }
         else if (entry is EventMessage)
         {
             EventMessage eventMessage = (EventMessage)entry;
             Log.Debug(TAG, prefix + String.Format("EMSG: scheme=%s, id=%d, value=%s",
                                                   eventMessage.SchemeIdUri, eventMessage.Id, eventMessage.Value));
         }
     }
 }
Esempio n. 2
0
        // MetadataRenderer.Output

        public void OnMetadata(MetadataObj metadata)
        {
            Log.Debug(TAG, "onMetadata [");
            printMetadata(metadata, "  ");
            Log.Debug(TAG, "]");
        }