Files
RSSHub/lib/routes/bsky/templates/post.art
T
AiraNadih 468bfcd55a feat(route/bsky): replace video thumbnail with video player (#17499)
* feat(route/bsky): replace video thumbnail with video player

* Update lib/routes/bsky/templates/post.art

---------
2024-11-10 19:52:35 +08:00

25 lines
850 B
Arturo

{{ if text }}
{{@ text }}<br>
{{ /if }}
{{ if embed }}
{{ if embed.$type === 'app.bsky.embed.images#view' }}
{{ each embed.images i }}
<img src="{{ i.fullsize }}" alt="{{ i.alt }}"><br>
{{ /each }}
{{ else if embed.$type === 'app.bsky.embed.video#view' }}
<video
controls
poster="{{ embed.thumbnail }}"
style="max-width: 100%; height: auto;"
preload="metadata">
<source src="{{ embed.playlist }}" type="application/x-mpegURL">
Your browser does not support HTML5 video playback.
</video><br>
{{ else if embed.$type === 'app.bsky.embed.external#view' }}
<a href="{{ embed.external.uri }}"><b>{{ embed.external.title }}</b><br>
{{ embed.external.description }}
</a>
{{ /if }}
{{ /if }}