Skip to content

MediaAttachment special cases #496

@abraham

Description

@abraham

Add a MetaDetails entity with the following properties

### `width` {#width}

**Description:** The width of the attachment in pixels.\
**Type:** {{<nullable>}} Integer, or null if the attachment is not visual\
**Version history:**

### `height` {#height}

**Description:** The height of the attachment in pixels.\
**Type:** {{<nullable>}} Integer, or null if the attachment is not visual\
**Version history:**

### `frame_rate` {#frame_rate}

**Description:** The frame rate of the video attachment.\
**Type:** {{<nullable>}} String (fraction), or null if the attachment is not a video\
**Version history:**

### `duration` {#duration}

**Description:** The duration of the video attachment.\
**Type:** {{<nullable>}} Float, or null if the attachment is not video or audio\
**Version history:**

### `bitrate` {#bitrate}

**Description:** The media bitrate of the video or audio attachment.\
**Type:** {{<nullable>}} Integer, or null if the attachment is an image\
**Version history:**

### `aspect` {#aspect}

**Description:** The media aspect ratio of the video or image attachment.\
**Type:** {{<nullable>}} Float, or null if the attachment is not visual\
**Version history:**

Update MediaAttachment#meta to include small and original.

### `meta[small]` {{%optional%}} {#meta-small}

**Description:** Details about the small preview version of the attachment.\
**Type:** {{<nullable>}} [MetaDetails](#MetaDetails) or null\
**Version history:**

### `meta[original]` {{%optional%}} {#meta-original}

**Description:** Details about the original version of the attachment.\
**Type:** {{<nullable>}} [MetaDetails](#MetaDetails) or null\
**Version history:**

Ref mastodon/documentation#1735

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions