Fix for #1147, Proxy for audio URL and upgrade hls.js (#1178)

* Revert "Fix broken video playback by forcing fmp4"

This reverts commit 52db03b73a.

* Fix audio url in video m3u8

* Upgrade hls.js to 1.5.1 and use full version
This commit is contained in:
jackyzy823 2024-02-22 07:10:54 +08:00 committed by GitHub
commit cdff5e9b1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View file

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