detect-audio-video
Detect audio video features.
Features
- Support for media formats
- Screen
- Name
- Size
- Aspect ratio
- Device pixel ratio
- HDR support
- Wide gamut
- Color spaces
- ScreenDetails: primary, internal and etc.
- GPU info
- DRM
- Microsoft PlayReady SL150, SL2000, SL3000
- Google Widevine Modular L1, L3
- Apple FairPlay
- Adobe Primetime
- Native streaming support
- HTMLVideoElement features
- Media Source Extensions
- Encrypted Media Extensions
- Managed Media Source
- Picture-in-picture
- Video codecs
- H.264
- H.265 (HEVC)
- H.266 (VVC)
- Dolby Vision
- EVC
- VP8
- VP9
- AV1
- Audio codecs
- AAC
- AC-3 (Dolby Digital)
- EC-3 (Dolby Digital+)
- Dolby Atmos
- Image formats
- GIF
- PNG
- APNG
- JPEG
- JPEG XL
- HEIF/HEIC
- AVIF
- WEBP
Install
npm install detect-audio-video --save-dev
Using
import { isAacSupported } from 'detect-audio-video';
console.log(`AAC supported: ${isAacSupported()}`);
License
MIT