JSON LD Schema - redbluescreen/dango Wiki

File

Property Type Description
mediaType string Media type (MIME type) of the file

Audio

Property Type Description
id3v2Tag MediaTagField[] ID3v2 tag if present
vorbisTag MediaTagField[] Vorbis comments if present
ilstTag MediaTagField[] Metadata from MP4 ilst atom if present
sampleRate uint Sample rate of the audio file in Hz
duration float Audio duration in seconds
channelCount uint Count of audio channels in the file

Picture

Property Type Description
imageType IRI Image format
width uint Image width in pixels
height uint Image height in pixels
exifFields MediaTagField[] EXIF fields if present

Defined imageType values (under https://yan.url.lol/dango-schema# IRI):

  • PNG, JPEG, GIF, WebP, TIFF, TGA, DDS, BMP

MediaTagField

Property Type Description
item string Field name
value string Field value

Special cases

  • ID3v2 TXXX fields: item is in format TXXX:<description>
  • ID3v2 UFID fields:
    1. item is in format UFID:<owner identifier>
    2. value is the binary identifier base64-encoded
  • EXIF fields:
    1. Strings are encoded as strings
    2. All other types are currently encoded as human-readable string representation of the value