A media attachment to a wall post, a comment, or a private message.
The type of the attachment. Determines which one of the other fields is populated.
Possible values:
photo,
graffiti,
video,
audio,
poll.
When type is photo, an object representing the photo.
When type is graffiti, an object representing the graffiti. Only exists on top-level wall posts.
The URL of the full-size graffiti image.
The URL of the smaller graffiti image for preview purposes.
The width of the graffiti.
The height of the graffiti.
When type is video, an object representing the video. Note: full support for videos will come in a future version of Smithereen. Currently, only the data provided by the remote server is returned, including a direct link to the video file on that server. The only field that’s guaranteed to be present is url.
The direct link to the video file. Most probably an MP4 with H264 and AAC, but no guarantees are made.
The width of the video.
The height of the video.
The BlurHash for the thumbnail.
The description for this video, often used as an “alt text” to describe the video for visually-impaired users.
When type is audio, an object representing the audio file. Note: full support for audio files will come in a future version of Smithereen. Currently, only the data provided by the remote server is returned, including a direct link to the audio file on that server. The only field that’s guaranteed to be present is url.
The direct link to the audio file.
The textual description of this audio file.
When type is poll, an object representing the poll.