Skip to content

Commit

Permalink
Fix broken video playback by forcing fmp4
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jan 12, 2024
1 parent 583c858 commit 52db03b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 52db03b

Please sign in to comment.