mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-07 05:01:36 +00:00
Add video support (experimental!)
This commit is contained in:
parent
95cc416e08
commit
a5ab771969
7 changed files with 96 additions and 43 deletions
|
|
@ -5,6 +5,12 @@ function proxyImage(url, width) {
|
|||
return "/imageproxy?"+params.toString()
|
||||
}
|
||||
|
||||
function proxyVideo(url) {
|
||||
const params = new URLSearchParams()
|
||||
params.set("url", url)
|
||||
return "/videoproxy?"+params.toString()
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("../types").ExtendedOwner} owner
|
||||
*/
|
||||
|
|
@ -15,4 +21,5 @@ function proxyExtendedOwner(owner) {
|
|||
}
|
||||
|
||||
module.exports.proxyImage = proxyImage
|
||||
module.exports.proxyVideo = proxyVideo
|
||||
module.exports.proxyExtendedOwner = proxyExtendedOwner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue