{"id":46271121,"url":"https://github.com/vvideo/detect-audio-video","last_synced_at":"2026-03-04T03:07:17.102Z","repository":{"id":234276010,"uuid":"731935483","full_name":"vvideo/detect-audio-video","owner":"vvideo","description":"Detect audio and video features in browser","archived":false,"fork":false,"pushed_at":"2026-02-28T11:16:17.000Z","size":625,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-28T15:39:19.366Z","etag":null,"topics":["audio","codecs","gamepad","gpu","screen","video","webrtc"],"latest_commit_sha":null,"homepage":"https://checkdevice.online/en/video","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vvideo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-15T08:29:17.000Z","updated_at":"2026-02-28T11:15:11.000Z","dependencies_parsed_at":"2025-12-12T23:05:16.872Z","dependency_job_id":null,"html_url":"https://github.com/vvideo/detect-audio-video","commit_stats":null,"previous_names":["vvideo/detect-audio-video"],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/vvideo/detect-audio-video","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvideo%2Fdetect-audio-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvideo%2Fdetect-audio-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvideo%2Fdetect-audio-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvideo%2Fdetect-audio-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvideo","download_url":"https://codeload.github.com/vvideo/detect-audio-video/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvideo%2Fdetect-audio-video/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","codecs","gamepad","gpu","screen","video","webrtc"],"created_at":"2026-03-04T03:07:16.442Z","updated_at":"2026-03-04T03:07:17.089Z","avatar_url":"https://github.com/vvideo.png","language":"TypeScript","readme":"# detect-audio-video\n\n[![NPM version](https://img.shields.io/npm/v/detect-audio-video.svg?style=flat)](https://www.npmjs.com/package/detect-audio-video)\n[![NPM downloads](https://img.shields.io/npm/dm/detect-audio-video.svg?style=flat)](https://www.npmjs.com/package/detect-audio-video)\n\nDetect audio and video features in browser.\n\n## [Demo](https://checkdevice.online/en/video/)\n\n## Install\n`npm i --save-dev detect-audio-video`\n\n## Features\n\n### 🖥️ [Screen](https://checkdevice.online/en/screen/)\n- Size\n- Device pixel ratio\n- HDR support\n- Wide gamut\n- Color spaces\n- [Aspect ratio](https://github.com/vvideo/calc-aspect-ratio)\n\n```js\nimport {\n    isWideGamutSupported,\n    isSrgbSupported,\n    isP3Supported,\n    isRec2020Supported,\n    getDevicePixelRatio,\n    getScreenWidth,\n    getScreenHeight,\n    getResolutionBadge,\n    isHighDynamicRangeSupported,\n    isHighVideoDynamicRangeSupported,\n} from 'detect-audio-video';\n\nconsole.log('isWideGamutSupported: ', isWideGamutSupported()); // boolean\nconsole.log('isSrgbSupported: ', isSrgbSupported()); // boolean\nconsole.log('isP3Supported: ', isP3Supported()); // boolean\nconsole.log('isRec2020Supported: ', isRec2020Supported()); // boolean\n\nconsole.log('getDevicePixelRatio: ', getDevicePixelRatio()); // number\n\n// Get screen width with device pixel ratio\nconsole.log('getScreenWidth: ', getScreenWidth()); // number\n// Get screen height with device pixel ratio\nconsole.log('getScreenHeight: ', getScreenHeight()); // number\n\nconsole.log('getResolutionBadge: ', getResolutionBadge()); // string, example: \"4K\"\n\nconsole.log('isHighDynamicRangeSupported: ', isHighDynamicRangeSupported()); // boolean\nconsole.log('isHighVideoDynamicRangeSupported: ', isHighVideoDynamicRangeSupported()); // boolean\n```\n\n### ⚙️ [GPU](https://checkdevice.online/en/gpu/)\n- Vendor\n- Renderer\n\n```js\nimport {\n    getGpuVendor,\n    getGpuRenderer,\n    hasHardwareAcceleration,\n    isAppleSilicon,\n    getGpuProblems,\n    isVirtualMachine,\n} from 'detect-audio-video';\n\nconst gpuVendor = getGpuVendor();\nconsole.log('gpuVendor: ', gpuVendor); // string, example: \"Apple\"\n\nconst gpuRenderer = getGpuRenderer();\nconsole.log('gpuRenderer: ', gpuRenderer); // string, example: \"Apple M1, or similar\"\n\nconsole.log('hasHardwareAcceleration: ', hasHardwareAcceleration()); // boolean\n\nconsole.log('isAppleSilicon: ', isAppleSilicon()); // boolean\n\nconsole.log('gpuProblems: ', getGpuProblems()); // null or ['no driver', ...]\n\nconsole.log('isVirtualMachine: ', isVirtualMachine(gpuRenderer, gpuVendor)); // boolean\n```\n\n### 🔒 [DRM](https://checkdevice.online/en/video/#drm)\n- Microsoft PlayReady SL150, SL2000, SL3000\n- Google Widevine Modular L1, L3\n- Apple FairPlay\n- Adobe Primetime\n- [HDCP](https://github.com/vvideo/hdcp)\n\n### 🏊 Native streaming support\n- DASH\n- HLS\n- MSS\n\n```js\nimport {\n    isNativeHlsSupported,\n    isNativeMpdSupported,\n    isNativeMssSupported,\n} from 'detect-audio-video';\n\nconsole.log('isNativeMssSupported: ', isNativeMssSupported()); // boolean\nconsole.log('isNativeHlsSupported: ', isNativeHlsSupported()); // boolean\nconsole.log('isNativeMpdSupported: ', isNativeMpdSupported()); // boolean\n```\n\n### ⏯ [HTMLVideoElement features](https://checkdevice.online/en/video/#htmlvideoelement-features)\n- Media Source Extensions\n- Media Source Extensions in Workers\n- Encrypted Media Extensions\n- Managed Media Source\n- Managed Media Source in Workers\n- Picture-in-picture\n- Cast to AirPlay\n- Remote Playback API\n\n### 📹 [Video codecs](https://checkdevice.online/en/video/#video-codecs)\n- H.264\n- H.265 (HEVC)\n- H.266 (VVC)\n- Dolby Vision\n- EVC\n- VP8\n- VP9\n- AV1\n- AV2\n- Apple ProRes\n\n### 🔊 [Audio codecs](https://checkdevice.online/en/audio/)\n- AAC\n- Opus\n- Vorbis\n- FLAC\n- ALAC\n- AC-3 (Dolby Digital)\n- EC-3 (Dolby Digital+)\n- Dolby Atmos\n\n### 🖼️ [Image formats](https://checkdevice.online/en/video/#image-formats)\n- GIF\n- PNG\n- APNG\n- JPEG\n- JPEG XL\n- HEIF/HEIC\n- AVIF\n- WEBP\n- SVG\n- ICO\n- BMP\n- TIFF\n\n### 🕍 [Platform](https://checkdevice.online/en/platform/)\n- Standalone\n\n### ✨ [WebRTC](https://checkdevice.online/en/webrtc/)\n- Support\n- Audio and video codecs\n\n### 🎮 [Gamepad](https://checkdevice.online/en/gamepad/)\n- Parser for gamepad name\n\n## Links\n- [Check device online](https://checkdevice.online/en/video/)\n- [Calculate aspect ratio](https://github.com/vvideo/calc-aspect-ratio)\n- [HDCP](https://github.com/vvideo/hdcp)\n\n## [License](./LICENSE)\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvideo%2Fdetect-audio-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvideo%2Fdetect-audio-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvideo%2Fdetect-audio-video/lists"}