diff --git a/examples/file-compression/file-compression.ts b/examples/file-compression/file-compression.ts index 57a1572..cbf048f 100644 --- a/examples/file-compression/file-compression.ts +++ b/examples/file-compression/file-compression.ts @@ -113,6 +113,7 @@ const compressFile = async (file: File) => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; + fileInput.accept = 'video/*,video/x-matroska,audio/*'; 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 8b3a800..b1e9844 100644 --- a/examples/media-player/media-player.ts +++ b/examples/media-player/media-player.ts @@ -544,6 +544,7 @@ const formatSeconds = (seconds: number) => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; + fileInput.accept = 'video/*,video/x-matroska,audio/*'; 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 eb6d2cf..ff9b569 100644 --- a/examples/metadata-extraction/metadata-extraction.ts +++ b/examples/metadata-extraction/metadata-extraction.ts @@ -155,6 +155,7 @@ const shortDelay = () => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; + fileInput.accept = 'video/*,video/x-matroska,audio/*'; 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 797352a..802e451 100644 --- a/examples/thumbnail-generation/thumbnail-generation.ts +++ b/examples/thumbnail-generation/thumbnail-generation.ts @@ -99,6 +99,7 @@ const generateThumbnails = async (file: File) => { selectMediaButton.addEventListener('click', () => { const fileInput = document.createElement('input'); fileInput.type = 'file'; + fileInput.accept = 'video/*,video/x-matroska,audio/*'; fileInput.addEventListener('change', () => { const file = fileInput.files?.[0]; if (!file) {