From 904ac2e3668991f07492894481463b2ec358b2fd Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Sat, 19 Jul 2025 17:28:39 +0200 Subject: [PATCH] Improve error messages in examples --- examples/live-recording/live-recording.ts | 1 + examples/media-player/index.html | 2 + examples/media-player/media-player.ts | 38 +++++++++++++++---- .../thumbnail-generation.ts | 10 ++++- 4 files changed, 43 insertions(+), 8 deletions(-) diff --git a/examples/live-recording/live-recording.ts b/examples/live-recording/live-recording.ts index dd4c721..435cc2d 100644 --- a/examples/live-recording/live-recording.ts +++ b/examples/live-recording/live-recording.ts @@ -38,6 +38,7 @@ const startRecording = async () => { mainContainer.style.display = 'none'; videoElement.src = ''; downloadButton.style.display = 'none'; + errorElement.textContent = ''; // Paint a white background to the canvas context.fillStyle = 'white'; diff --git a/examples/media-player/index.html b/examples/media-player/index.html index a5d5e62..17eaa76 100644 --- a/examples/media-player/index.html +++ b/examples/media-player/index.html @@ -29,6 +29,8 @@

+

+