|
|
|
@ -211,11 +211,11 @@
|
|
|
|
|
// Gifv embed
|
|
|
|
|
if (embed.TryGetGifv() is { } gifvEmbed)
|
|
|
|
|
{
|
|
|
|
|
@if (embed.Video is not null && !string.IsNullOrWhiteSpace(embed.Video.Url) && embed.Thumbnail is not null)
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(embed.Video?.Url))
|
|
|
|
|
{
|
|
|
|
|
<div class="chatlog__attachment">
|
|
|
|
|
<video class="chatlog__attachment-media" poster="@await ResolveUrlAsync(embed.Thumbnail.ProxyUrl ?? embed.Thumbnail.Url)" loop onmouseover="this.play()" onmouseout="this.pause()" width="@embed.Video.Width" height="@embed.Video.Height">
|
|
|
|
|
<source src="@await ResolveUrlAsync(embed.Video.ProxyUrl ?? embed.Video.Url)" alt="@(embed.Description ?? "Tenor GIF")" title="@embed.Title">
|
|
|
|
|
<video class="chatlog__attachment-media" loop width="@embed.Video.Width" height="@embed.Video.Height" onmouseover="this.play()" onmouseout="this.pause()">
|
|
|
|
|
<source src="@await ResolveUrlAsync(embed.Video.ProxyUrl ?? embed.Video.Url)" alt="Embedded video">
|
|
|
|
|
</video>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|