proxitok/views/video.latte

24 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-04-10 06:10:48 -04:00
{layout "../layouts/{$layout}.latte"}
2022-01-08 10:03:57 -05:00
2022-01-25 08:08:31 -05:00
{block content}
2022-04-10 06:10:48 -04:00
<div class="columns is-centered is-vcentered is-gapless">
<div class="column is-three-quarters">
<video controls autoplay playsinline poster="{path('/stream?url=' . urlencode($item->video->originCover))}">
<source src="{path('/stream?url=' . urlencode($item->video->playAddr))}" type="video/mp4" />
2022-01-28 09:54:09 -05:00
</video>
</div>
<div class="column has-text-centered">
<div class="box">
2022-04-10 06:10:48 -04:00
<p class="title">Video by <a href="{path('/@'.$detail->uniqueId)}">{$detail->uniqueId}</a></p>
<p class="subtitle">{$item->desc}</p>
{include '../components/themes/common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
<hr />
2022-04-10 06:10:48 -04:00
{include '../components/themes/common/share.latte', uniqueId: $detail->uniqueId, id: $item->id}
{include '../components/themes/common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $detail->uniqueId}
<p>{$item->music->title}</p>
<audio src="{path('/stream?url=' . urlencode($item->music->playUrl))}" controls preload="none"></audio>
</div>
2022-01-08 10:03:57 -05:00
</div>
2022-01-25 08:08:31 -05:00
</div>
{/block}