Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): add playsInline attribute to video players (#5795)

Marc Klingenae66dd9e6f75
diff --git a/web/src/components/ui/LangfuseMediaView.tsx b/web/src/components/ui/LangfuseMediaView.tsx
index 1bfe28edc0..46a0fb5044 100644
--- a/web/src/components/ui/LangfuseMediaView.tsx
+++ b/web/src/components/ui/LangfuseMediaView.tsx
@@ -156,7 +156,7 @@ function VideoPlayer({ src }: { src?: string }) {
if (!src) return null;
return (
- <video controls className="w-full" preload="metadata">
+ <video controls className="w-full" preload="metadata" playsInline>
<source src={src} />
Your browser does not support the video element.
</video>
diff --git a/web/src/components/ui/splash-screen.tsx b/web/src/components/ui/splash-screen.tsx
index dab25c8cdf..f0ceec1e0b 100644
--- a/web/src/components/ui/splash-screen.tsx
+++ b/web/src/components/ui/splash-screen.tsx
@@ -58,6 +58,7 @@ function VideoPlayer({ videoSrc }: VideoPlayerProps) {
autoPlay
muted
loop
+ playsInline
controlsList="nodownload"
className="w-full"
onError={() => setHasError(true)}