Fix broken video playback by forcing fmp4

This commit is contained in:
Zed 2024-01-12 03:47:06 +01:00
parent 583c858cdf
commit 52db03b73a
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ proc getHmac*(data: string): string =
proc getVidUrl*(link: string): string =
if link.len == 0: return
let sig = getHmac(link)
let
link = link.replace("cmaf", "fmp4")
sig = getHmac(link)
if base64Media:
&"/video/enc/{sig}/{encode(link, safe=true)}"
else: