Skip to content

Commit

Permalink
Fix video embed
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jul 14, 2023
1 parent 4c4d548 commit f881226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/embed.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const doctype = "<!DOCTYPE html>\n"
proc renderVideoEmbed*(tweet: Tweet; cfg: Config; req: Request): string =
let thumb = get(tweet.video).thumb
let vidUrl = getVideoEmbed(cfg, tweet.id)
let prefs = Prefs(hlsPlayback: true)
let prefs = Prefs(hlsPlayback: true, mp4Playback: true)
let node = buildHtml(html(lang="en")):
renderHead(prefs, cfg, req, video=vidUrl, images=(@[thumb]))

Expand Down

0 comments on commit f881226

Please sign in to comment.