mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Remove alpha and add desynchronized
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ Examples:
|
|||||||
✅ Extracting media file metadata
|
✅ Extracting media file metadata
|
||||||
✅ Rendering thumbnails for a video / extracting a wave form?
|
✅ Rendering thumbnails for a video / extracting a wave form?
|
||||||
✅ Media player
|
✅ Media player
|
||||||
- Conversion demo: File compressor
|
✅ Conversion demo: File compressor
|
||||||
- Procedurally generated video (faster than real time)
|
- Procedurally generated video (faster than real time)
|
||||||
- Video generated from live sources
|
- Video generated from live sources
|
||||||
- Live streaming demo?
|
- Live streaming demo?
|
||||||
@@ -28,7 +28,7 @@ const volumeButton = document.querySelector('#volume-button') as HTMLButtonEleme
|
|||||||
const fullscreenButton = document.querySelector('#fullscreen-button') as HTMLButtonElement;
|
const fullscreenButton = document.querySelector('#fullscreen-button') as HTMLButtonElement;
|
||||||
const errorElement = document.querySelector('#error-element') as HTMLDivElement;
|
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 audioContext: AudioContext | null = null;
|
||||||
let gainNode: GainNode | null = null;
|
let gainNode: GainNode | null = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user