Fix broken video playback by forcing fmp4
This commit is contained in:
parent
583c858cdf
commit
52db03b73a
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ proc getHmac*(data: string): string =
|
||||||
|
|
||||||
proc getVidUrl*(link: string): string =
|
proc getVidUrl*(link: string): string =
|
||||||
if link.len == 0: return
|
if link.len == 0: return
|
||||||
let sig = getHmac(link)
|
let
|
||||||
|
link = link.replace("cmaf", "fmp4")
|
||||||
|
sig = getHmac(link)
|
||||||
if base64Media:
|
if base64Media:
|
||||||
&"/video/enc/{sig}/{encode(link, safe=true)}"
|
&"/video/enc/{sig}/{encode(link, safe=true)}"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue