fix(frontend/media): メディアプロキシ使用時オーディオが再生されない問題を修正 (MisskeyIO#854)

This commit is contained in:
あわわわとーにゅ 2024-12-25 15:40:21 +09:00 committed by GitHub
parent 1c6829d429
commit 84505cb7ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<audio
ref="audioEl"
preload="metadata"
crossorigin="anonymous"
controls
:class="$style.nativeAudio"
@keydown.prevent
@ -41,6 +42,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<audio
ref="audioEl"
preload="metadata"
crossorigin="anonymous"
>
<source :src="audio.url">
</audio>

View file

@ -34,6 +34,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:title="video.comment ?? undefined"
:alt="video.comment"
preload="metadata"
crossorigin="anonymous"
controls
@keydown.prevent
>
@ -54,6 +55,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:title="video.comment ?? undefined"
:alt="video.comment"
preload="metadata"
crossorigin="anonymous"
playsinline
@keydown.prevent
@click.self="togglePlayPause"

View file

@ -15,7 +15,7 @@
<title>[DEV] Loading...</title>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"
http-equiv="Content-Security-Policy-Report-Only"
content="default-src 'self' https://newassets.hcaptcha.com/ https://challenges.cloudflare.com/ http://localhost:7493/ https://fonts.gstatic.com/ https://www.google-analytics.com/ https://www.googletagmanager.com/;
worker-src 'self';
script-src 'self' 'unsafe-eval' https://*.hcaptcha.com https://challenges.cloudflare.com https://www.googletagmanager.com https://esm.sh;