diff --git a/docs/index.md b/docs/index.md index 4191f11..c47a43b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -41,7 +41,7 @@ Examples: ✅ Extracting media file metadata ✅ Rendering thumbnails for a video / extracting a wave form? ✅ Media player -- Conversion demo: File compressor +✅ Conversion demo: File compressor - Procedurally generated video (faster than real time) - Video generated from live sources - Live streaming demo? \ No newline at end of file diff --git a/examples/media-player/media-player.ts b/examples/media-player/media-player.ts index 4281440..f057941 100644 --- a/examples/media-player/media-player.ts +++ b/examples/media-player/media-player.ts @@ -28,7 +28,7 @@ const volumeButton = document.querySelector('#volume-button') as HTMLButtonEleme const fullscreenButton = document.querySelector('#fullscreen-button') as HTMLButtonElement; const errorElement = document.querySelector('#error-element') as HTMLDivElement; -const context = canvas.getContext('2d')!; +const context = canvas.getContext('2d', { alpha: false, desynchronized: true })!; let audioContext: AudioContext | null = null; let gainNode: GainNode | null = null;