proxitok/views/video.latte

24 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-01-25 13:08:31 +00:00
{layout '../layouts/hero.latte'}
2022-01-08 15:03:57 +00:00
2022-01-25 13:08:31 +00:00
{block content}
<div class="columns is-centered is-vcentered">
<div class="column">
2022-02-13 21:21:08 +00:00
<video controls poster="{path('/stream?url=' . urlencode($feed->items[0]->video->originCover))}">
<source src="{path('/stream?url=' . urlencode($feed->items[0]->video->playAddr))}" type="video/mp4" />
2022-01-28 14:54:09 +00:00
</video>
</div>
<div class="column has-text-centered">
<div class="box">
2022-02-13 21:21:08 +00:00
<p class="title">Video by <a href="{path('/@'.$feed->info->detail->uniqueId)}">{$feed->info->detail->uniqueId}</a></p>
<p class="subtitle">{$feed->items[0]->desc}</p>
<p>Played {number($feed->info->stats->playCount)} times</p>
<p>Shared {number($feed->info->stats->shareCount)} times / {number($feed->info->stats->commentCount)} comments</p>
<hr />
2022-02-13 21:21:08 +00:00
<a href="{path('/stream?url=' . urlencode($feed->items[0]->video->playAddr) . '&download=1')}" class="button is-info">Download video</a>
<p>{$feed->items[0]->music->title}</p>
<audio src="{path('/stream?url=' . urlencode($feed->items[0]->music->playUrl))}" controls preload="none"></audio>
</div>
2022-01-08 15:03:57 +00:00
</div>
2022-01-25 13:08:31 +00:00
</div>
{/block}