From 2695921ed4d1bfc3520ba6930b1cbfcd2feb498d Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Fri, 16 Jan 2026 17:08:19 +0100 Subject: [PATCH] Allow .ts files to be picked in examples --- examples/file-compression/file-compression.ts | 2 +- examples/media-player/media-player.ts | 2 +- examples/metadata-extraction/metadata-extraction.ts | 2 +- examples/thumbnail-generation/thumbnail-generation.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/file-compression/file-compression.ts b/examples/file-compression/file-compression.ts index 310eaca..08b821d 100644 --- a/examples/file-compression/file-compression.ts +++ b/examples/file-compression/file-compression.ts @@ -124,7 +124,7 @@ const compressFile = async (resource: File | string) => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; - fileInput.accept = 'video/*,video/x-matroska,audio/*,audio/aac'; + fileInput.accept = 'video/*,video/x-matroska,video/mp2t,.ts,audio/*,audio/aac'; fileInput.addEventListener('change', () => { const file = fileInput.files?.[0]; if (!file) { diff --git a/examples/media-player/media-player.ts b/examples/media-player/media-player.ts index 868183c..6341647 100644 --- a/examples/media-player/media-player.ts +++ b/examples/media-player/media-player.ts @@ -663,7 +663,7 @@ window.addEventListener('resize', () => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; - fileInput.accept = 'video/*,video/x-matroska,audio/*,audio/aac'; + fileInput.accept = 'video/*,video/x-matroska,video/mp2t,.ts,audio/*,audio/aac'; fileInput.addEventListener('change', () => { const file = fileInput.files?.[0]; if (!file) { diff --git a/examples/metadata-extraction/metadata-extraction.ts b/examples/metadata-extraction/metadata-extraction.ts index 1e932d9..fe81c1b 100644 --- a/examples/metadata-extraction/metadata-extraction.ts +++ b/examples/metadata-extraction/metadata-extraction.ts @@ -204,7 +204,7 @@ const shortDelay = () => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; - fileInput.accept = 'video/*,video/x-matroska,audio/*,audio/aac'; + fileInput.accept = 'video/*,video/x-matroska,video/mp2t,.ts,audio/*,audio/aac'; fileInput.addEventListener('change', () => { const file = fileInput.files?.[0]; if (!file) { diff --git a/examples/thumbnail-generation/thumbnail-generation.ts b/examples/thumbnail-generation/thumbnail-generation.ts index ea7716c..28eeede 100644 --- a/examples/thumbnail-generation/thumbnail-generation.ts +++ b/examples/thumbnail-generation/thumbnail-generation.ts @@ -120,7 +120,7 @@ const generateThumbnails = async (resource: File | string) => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; - fileInput.accept = 'video/*,video/x-matroska,audio/*,audio/aac'; + fileInput.accept = 'video/*,video/x-matroska,video/mp2t,.ts,audio/*,audio/aac'; fileInput.addEventListener('change', () => { const file = fileInput.files?.[0]; if (!file) {