detect-audio-video
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -298,3 +298,4 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"'; | ||
function isMseSupported() { | ||
return Boolean(window.MediaSource && window.MediaSource.isTypeSupported); | ||
return Boolean(window.MediaSource && | ||
typeof window.MediaSource.isTypeSupported === 'function'); | ||
} | ||
@@ -309,3 +310,3 @@ function isEmeSupported() { | ||
return Boolean(window.ManagedMediaSource && | ||
window.ManagedMediaSource.isTypeSupported); | ||
typeof window.ManagedMediaSource.isTypeSupported === 'function'); | ||
} | ||
@@ -312,0 +313,0 @@ |
{ | ||
"name": "detect-audio-video", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Detect audio and video features in browser", | ||
@@ -25,9 +25,9 @@ "module": "dist/index.js", | ||
"@types/jest": "^29.5.12", | ||
"del-cli": "^4.0.1", | ||
"del-cli": "^5.1.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"rollup": "^4.12.0", | ||
"ts-jest": "^29.1.2", | ||
"rollup": "^4.18.0", | ||
"ts-jest": "^29.1.3", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.4.5" | ||
}, | ||
@@ -34,0 +34,0 @@ "keywords": [ |
122
README.md
@@ -12,60 +12,68 @@ # detect-audio-video | ||
## Features | ||
- 🖥️ Screen | ||
+ Name | ||
+ Size | ||
+ [Aspect ratio](https://github.com/vvideo/calc-aspect-ratio) | ||
+ Device pixel ratio | ||
+ HDR support | ||
+ Wide gamut | ||
+ Color spaces | ||
- ⚙️ GPU | ||
+ Vendor | ||
+ Renderer | ||
- 🔒 DRM | ||
+ Microsoft PlayReady SL150, SL2000, SL3000 | ||
+ Google Widevine Modular L1, L3 | ||
+ Apple FairPlay | ||
+ Adobe Primetime | ||
+ [HDCP](https://github.com/vvideo/hdcp) | ||
- 🏊 Native streaming support | ||
+ DASH | ||
+ HLS | ||
+ MSS | ||
- ⏯ HTMLVideoElement features | ||
+ Media Source Extensions | ||
+ Encrypted Media Extensions | ||
+ Managed Media Source | ||
+ Picture-in-picture | ||
+ Cast to AirPlay | ||
- 📹 Video codecs | ||
+ H.264 | ||
+ H.265 (HEVC) | ||
+ H.266 (VVC) | ||
+ Dolby Vision | ||
+ EVC | ||
+ VP8 | ||
+ VP9 | ||
+ AV1 | ||
- 🔊 Audio codecs | ||
+ AAC | ||
+ Opus | ||
+ Vorbis | ||
+ FLAC | ||
+ ALAC | ||
+ AC-3 (Dolby Digital) | ||
+ EC-3 (Dolby Digital+) | ||
+ Dolby Atmos | ||
- 🖼️ Image formats | ||
+ GIF | ||
+ PNG | ||
+ APNG | ||
+ JPEG | ||
+ JPEG XL | ||
+ HEIF/HEIC | ||
+ AVIF | ||
+ WEBP | ||
+ SVG | ||
- 🕍 Platform | ||
+ Standalone | ||
### 🖥️ Screen | ||
- Size | ||
- Device pixel ratio | ||
- HDR support | ||
- Wide gamut | ||
- Color spaces | ||
- [Aspect ratio](https://github.com/vvideo/calc-aspect-ratio) | ||
### ⚙️ GPU | ||
- Vendor | ||
- Renderer | ||
### 🔒 DRM | ||
- Microsoft PlayReady SL150, SL2000, SL3000 | ||
- Google Widevine Modular L1, L3 | ||
- Apple FairPlay | ||
- Adobe Primetime | ||
- [HDCP](https://github.com/vvideo/hdcp) | ||
### 🏊 Native streaming support | ||
- DASH | ||
- HLS | ||
- MSS | ||
### ⏯ HTMLVideoElement features | ||
- Media Source Extensions | ||
- Encrypted Media Extensions | ||
- Managed Media Source | ||
- Picture-in-picture | ||
- Cast to AirPlay | ||
### 📹 Video codecs | ||
- H.264 | ||
- H.265 (HEVC) | ||
- H.266 (VVC) | ||
- Dolby Vision | ||
- EVC | ||
- VP8 | ||
- VP9 | ||
- AV1 | ||
### 🔊 Audio codecs | ||
- AAC | ||
- Opus | ||
- Vorbis | ||
- FLAC | ||
- ALAC | ||
- AC-3 (Dolby Digital) | ||
- EC-3 (Dolby Digital+) | ||
- Dolby Atmos | ||
### 🖼️ Image formats | ||
- GIF | ||
- PNG | ||
- APNG | ||
- JPEG | ||
- JPEG XL | ||
- HEIF/HEIC | ||
- AVIF | ||
- WEBP | ||
- SVG | ||
### 🕍 Platform | ||
- Standalone | ||
## Install | ||
@@ -72,0 +80,0 @@ `npm i --save-dev detect-audio-video` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1199
95
52142