From 5aa894912db34f8656a66c7af4ea16f60987bc16 Mon Sep 17 00:00:00 2001 From: Florian THIERRY Date: Fri, 24 Jul 2026 15:36:06 +0200 Subject: [PATCH] Add frontend --- frontend/src/app/app.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/app.ts b/frontend/src/app/app.ts index 8add77b..d81eb9e 100644 --- a/frontend/src/app/app.ts +++ b/frontend/src/app/app.ts @@ -67,8 +67,11 @@ export class App implements OnInit { fluid: true, sources: [{ src: `/api/videos/${videoId}/stream`, - type: 'video/x-msvideo' // AVI MIME type - }] + type: 'video/mp4' // Use MP4 as it's widely supported + }], + error: (error: Event) => { + console.error('Video.js error:', error); + } }); this.#videoPlayers.set(videoId, player);