|
|
|
@ -365,15 +365,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
// Twitch embed
|
|
|
|
|
else if (embed.TryGetTwitchClip() is { } twitchClipEmbed)
|
|
|
|
|
{
|
|
|
|
|
<div class="chatlog__embed">
|
|
|
|
|
<div class="chatlog__embed-twitch-container">
|
|
|
|
|
<iframe class="chatlog__embed-twitch" src="@twitchClipEmbed.Url" width="400" height="225"></iframe>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
// YouTube embed
|
|
|
|
|
else if (embed.TryGetYouTubeVideo() is { } youTubeVideoEmbed)
|
|
|
|
|
{
|
|
|
|
@ -457,7 +448,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
// Generic video embed
|
|
|
|
|
else if (embed.Kind == EmbedKind.Video && !string.IsNullOrWhiteSpace(embed.Url))
|
|
|
|
|
else if (embed.Kind == EmbedKind.Video
|
|
|
|
|
&& !string.IsNullOrWhiteSpace(embed.Url)
|
|
|
|
|
// Twitch clips cannot be embedded in local HTML files
|
|
|
|
|
&& embed.TryGetTwitchClip() is null)
|
|
|
|
|
{
|
|
|
|
|
var embedVideoUrl =
|
|
|
|
|
embed.Video?.ProxyUrl ?? embed.Video?.Url ??
|
|
|
|
|