mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-10-03 11:07:47 +00:00
Verifies the selected recording MIME type can also be decoded by the in-app <video> element via canPlayType(), so that codecs like av1 — which MediaRecorder.isTypeSupported() reports as supported for encoding but are not decodable on fresh Windows installs without the AV1 Video Extension — are not chosen. Also passes undefined (not an unsupported fallback string) into new MediaRecorder() when no preferred type is supported, letting the browser pick a default instead of throwing NotSupportedError. Replaces the previous 'as ProcessedDesktopSource' cast with a properly typed LINUX_PORTAL_SOURCE constant. Co-authored-by: meiiie <meiiie@users.noreply.github.com>