Farhian
05/18/2023, 8:52 PMflayks
05/18/2023, 8:53 PMflayks
05/18/2023, 8:56 PMjs
const preloadVideo = async (url: string) => {
const res = await fetch(url)
const blob = await res.blob()
return URL.createObjectURL(blob)
}
onmessage = async ({ data }: MessageEvent) => {
for (const videoUrl of data.videos) {
const url = await preloadVideo(videoUrl)
preloadedMedia.videos.push(url)
postMessage(preloadedMedia)
}
})
so there is a .fetch()
involvedSid | R2
05/18/2023, 9:02 PMFarhian
05/18/2023, 9:22 PMbrainstorm
05/19/2023, 5:12 AMUnsmart | Tech debt
05/19/2023, 5:17 AMnora
05/19/2023, 8:49 AMhttps://cdn.discordapp.com/attachments/940663374377783388/1109040200925057024/image.pngâ–¾
nora
05/19/2023, 8:50 AMhttps://cdn.discordapp.com/attachments/940663374377783388/1109040268172333136/image.pngâ–¾
kimuyb
05/19/2023, 8:59 AMkimuyb
05/19/2023, 8:59 AMhttps://cdn.discordapp.com/attachments/940663374377783388/1109042737048731658/2023-05-19_5.59.48.pngâ–¾
HardAtWork
05/19/2023, 9:08 AMr2.dev
subdomain may be rate-limited.kimuyb
05/19/2023, 9:18 AMkimuyb
05/19/2023, 9:19 AMkimuyb
05/19/2023, 9:19 AMErisa | Support Engineer
05/19/2023, 10:12 AMErisa | Support Engineer
05/19/2023, 10:13 AMKIKI1140
05/19/2023, 1:51 PMSkye
05/19/2023, 1:51 PMKIKI1140
05/19/2023, 1:53 PMhttps://cdn.discordapp.com/attachments/940663374377783388/1109116710444875896/Screen_Shot_2023-05-19_at_10.53.12_PM.pngâ–¾
Skye
05/19/2023, 1:54 PMhttps://cdn.discordapp.com/attachments/940663374377783388/1109116943186808932/image.pngâ–¾
Skye
05/19/2023, 1:54 PMKIKI1140
05/19/2023, 1:56 PMhttps://cdn.discordapp.com/attachments/940663374377783388/1109117499208900698/Screen_Shot_2023-05-19_at_10.55.21_PM.pngâ–¾
meowzilla
05/19/2023, 2:30 PMmeowzilla
05/19/2023, 2:30 PMIsaac McFadyen | YYZ01
05/19/2023, 3:00 PMIsaac McFadyen | YYZ01
05/19/2023, 3:00 PMlootjes
05/19/2023, 3:31 PMkian
05/19/2023, 3:31 PMUnsmart | Tech debt
05/19/2023, 3:31 PM