Skip to content

Commit

Permalink
lexicon change - add presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed Nov 8, 2024
1 parent 561431f commit 4084f60
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lexicons/app/bsky/embed/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
"width": { "type": "integer", "minimum": 1 },
"height": { "type": "integer", "minimum": 1 }
}
},
"videoPresentation": {
"type": "object",
"description": "Indicates that this video should be presented as a normal video - i.e. with sound, a progress bar, etc.",
"properties": {}
},
"gifPresentation": {
"type": "object",
"description": "Indicates that this video should be presented as a GIF - i.e. with no sound, looping, etc.",
"properties": {}
}
}
}
9 changes: 9 additions & 0 deletions lexicons/app/bsky/embed/video.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
"aspectRatio": {
"type": "ref",
"ref": "app.bsky.embed.defs#aspectRatio"
},
"presentation": {
"type": "union",
"description": "The video's presentation type. If not provided, it will assumed to be #videoPresentation.",
"refs": ["#videoPresentation", "#gifPresentation"]
}
}
},
Expand Down Expand Up @@ -59,6 +64,10 @@
"aspectRatio": {
"type": "ref",
"ref": "app.bsky.embed.defs#aspectRatio"
},
"presentation": {
"type": "union",
"refs": ["#videoPresentation", "#gifPresentation"]
}
}
}
Expand Down

0 comments on commit 4084f60

Please sign in to comment.