fix: Fix video and audio loading with authenicated media (#1946)
author夜坂雅 <23130178+ShadowRZ@users.noreply.github.com>
Wed, 11 Sep 2024 05:13:15 +0000 (13:13 +0800)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2024 05:13:15 +0000 (10:43 +0530)
commitf2c31d29a287f6d2cf9e92be1a1b7ba312a3034c
tree917e617db0fa0be1f6ba07d2e17dc0700daa279a
parent5482f8e72e72ba1323d5991454c9c36b608d6256
fix: Fix video and audio loading with authenicated media (#1946)

Appeareantly Firefox (and maybe Chrome) won't let service workers take over requests from <video> and <audio> tags, so we just fetch the URL ourselves.
src/app/components/message/content/AudioContent.tsx
src/app/components/message/content/VideoContent.tsx
src/app/components/message/content/util.ts