mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 13:10:20 +00:00
Merge pull request 'Bluesky: Preparation for video posts' (#1554) from heluecht/friendica-addons:hls into develop
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1554
This commit is contained in:
commit
ef37aa60e3
1 changed files with 13 additions and 0 deletions
|
@ -1410,6 +1410,19 @@ function bluesky_add_media(stdClass $embed, array $item, int $fetch_uid, int $le
|
|||
}
|
||||
break;
|
||||
|
||||
case 'app.bsky.embed.video#view':
|
||||
$media = [
|
||||
'uri-id' => $item['uri-id'],
|
||||
'type' => Post\Media::HLS,
|
||||
'url' => $embed->playlist,
|
||||
'preview' => $embed->thumbnail,
|
||||
'description' => $embed->alt ?? '',
|
||||
'height' => $embed->aspectRatio->height,
|
||||
'width' => $embed->aspectRatio->width,
|
||||
];
|
||||
Post\Media::insert($media);
|
||||
break;
|
||||
|
||||
case 'app.bsky.embed.external#view':
|
||||
$media = [
|
||||
'uri-id' => $item['uri-id'],
|
||||
|
|
Loading…
Reference in a new issue