Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-audio-video

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-audio-video - npm Package Compare versions

Comparing version 0.23.0 to 0.25.0

4

dist/contentTypes/video.d.ts

@@ -13,1 +13,5 @@ export declare const H264_BASELINE_CONTENT_TYPE = "video/mp4; codecs=\"avc1.42E01E\"";

export declare const MPEG2T_CONTENT_TYPE = "video/mp2t";
export declare const VVC1_MAIN10_CONTENT_TYPE = "vvc1.1.L67.CQA.O0+3";
export declare const VVCI_MAIN10_CONTENT_TYPE = "vvci.1.L67.CQA.O0+3";
export declare const EVC_BASELINE_CONTENT_TYPE = "evc1.vprf0.vlev123";
export declare const EVC_MAIN_CONTENT_TYPE = "evc1.vprf1.vlev153";

@@ -7,3 +7,4 @@ export declare const FAIRPLAY_KEY_SYSTEM = "com.apple.fps";

export declare const PLAYREADY_KEY_SYSTEM = "com.microsoft.playready";
export declare const PLAYREADY_RECOMMENDATION_KEY_SYSTEM = "com.microsoft.playready.recommendation";
export declare const PRIMETIME_KEY_SYSTEM = "com.adobe.primetime";
export declare const CLEAR_KEY_SYSTEM = "org.w3.clearkey";

@@ -130,2 +130,6 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"';

const MPEG2T_CONTENT_TYPE = 'video/mp2t';
const VVC1_MAIN10_CONTENT_TYPE = 'vvc1.1.L67.CQA.O0+3';
const VVCI_MAIN10_CONTENT_TYPE = 'vvci.1.L67.CQA.O0+3';
const EVC_BASELINE_CONTENT_TYPE = 'evc1.vprf0.vlev123';
const EVC_MAIN_CONTENT_TYPE = 'evc1.vprf1.vlev153';

@@ -151,5 +155,5 @@ function isVp8Supported() {

function isHevcMainSupported() {
const resultHev = isContentTypeSupported(HEV_MAIN_CONTENT_TYPE);
if (resultHev.any) {
return resultHev;
const result = isContentTypeSupported(HEV_MAIN_CONTENT_TYPE);
if (result.any) {
return result;
}

@@ -171,2 +175,15 @@ return isContentTypeSupported(HVC_MAIN_CONTENT_TYPE);

}
function isVvcMain10Supported() {
const result = isContentTypeSupported(VVC1_MAIN10_CONTENT_TYPE);
if (result.any) {
return result;
}
return isContentTypeSupported(VVCI_MAIN10_CONTENT_TYPE);
}
function isEvcBaselineSupported() {
return isContentTypeSupported(EVC_BASELINE_CONTENT_TYPE);
}
function isEvcMainSupported() {
return isContentTypeSupported(EVC_MAIN_CONTENT_TYPE);
}

@@ -495,3 +512,5 @@ const GIF_CONTENT_TYPE = 'image/gif';

const WIDEWINE_KEY_SYSTEM = 'com.widevine.alpha';
// https://github.com/shaka-project/shaka-player/blob/main/docs/tutorials/drm-config.md
const PLAYREADY_KEY_SYSTEM = 'com.microsoft.playready';
const PLAYREADY_RECOMMENDATION_KEY_SYSTEM = 'com.microsoft.playready.recommendation';
const PRIMETIME_KEY_SYSTEM = 'com.adobe.primetime';

@@ -621,3 +640,3 @@ const CLEAR_KEY_SYSTEM = 'org.w3.clearkey';

function isPlayReadySL2000Supported() {
return requestMediaKeySystemAccess(PLAYREADY_KEY_SYSTEM, [
return requestMediaKeySystemAccess(PLAYREADY_RECOMMENDATION_KEY_SYSTEM, [
{

@@ -635,3 +654,3 @@ initDataTypes: ['cenc'],

function isPlayReadySL3000Supported() {
return requestMediaKeySystemAccess(PLAYREADY_KEY_SYSTEM, [
return requestMediaKeySystemAccess(PLAYREADY_RECOMMENDATION_KEY_SYSTEM, [
{

@@ -675,2 +694,2 @@ initDataTypes: ['cenc'],

export { AAC_CONTENT_TYPE, APNG_CONTENT_TYPE, AV1_CONTENT_TYPE, AVIF_CONTENT_TYPE, CLEAR_KEY_SYSTEM, DOLBY_AC3_CONTENT_TYPE, DOLBY_AC4_CONTENT_TYPE, DOLBY_ATMOS_CONTENT_TYPE, DOLBY_EC3_CONTENT_TYPE, DOLBY_VISION_CONTENT_TYPE, DTS_CORE_CONTENT_TYPE, DTS_HD_CORE_PLUS_EXTENSION_CONTENT_TYPE, DTS_HD_LBR_CONTENT_TYPE, DTS_UHD_PROFILE_2_CONTENT_TYPE, DTS_UHD_PROFILE_3_CONTENT_TYPE, FAIRPLAY_KEY_SYSTEM, FAIRPLAY_V1_KEY_SYSTEM, FAIRPLAY_V2_KEY_SYSTEM, FAIRPLAY_V3_KEY_SYSTEM, FLAC_CONTENT_TYPE, GIF_CONTENT_TYPE, H264_BASELINE_CONTENT_TYPE, H264_HIGH_CONTENT_TYPE, H264_MAIN_CONTENT_TYPE, HEIF_CONTENT_TYPE, HEV_MAIN10_CONTENT_TYPE, HEV_MAIN_CONTENT_TYPE, HLS_CONTENT_TYPE, HVC_MAIN10_CONTENT_TYPE, HVC_MAIN_CONTENT_TYPE, JPEG_CONTENT_TYPE, MP3_CONTENT_TYPE, MP4_AUDIO_CONTENT_TYPE, MPD_CONTENT_TYPE, MPEG2T_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_1_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_1_MULTISTREAM_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_2_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_2_MULTISTREAM_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_3_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_3_MULTISTREAM_CONTENT_TYPE, MSS_CONTENT_TYPE, OPUS_CONTENT_TYPE, PLAYREADY_KEY_SYSTEM, PNG_CONTENT_TYPE, PRIMETIME_KEY_SYSTEM, SVG_CONTENT_TYPE, TTML_CONTENT_TYPE, VORBIS_CONTENT_TYPE, VP8_CONTENT_TYPE, VP9_CONTENT_TYPE, WEBP_CONTENT_TYPE, WEBVTT_CONTENT_TYPE, WIDEWINE_KEY_SYSTEM, XHE_AAC_CONTENT_TYPE, canPlayType, defaultVideoElement, getDevicePixelRatio, getGpuRenderer, getGpuVendor, getIsMobile, getResolutionBadge, getResolutionMode, getScreenDepth, getScreenHeight, getScreenWidth, is10KScreenSupported, is16KScreenSupported, is2KScreenSupported, is2dot5KScreenSupported, is32KScreenSupported, is4KScreenSupported, is5KScreenSupported, is6KScreenSupported, is8KScreenSupported, isAPngSupported, isAV1Supported, isAacSupported, isAvifSupported, isClearKeySupported, isContentTypeSupported, isDolbyAtmosSupported, isDolbyDigitalPlusSupported, isDolbyDigitalSupported, isDolbyVisionSupported, isDtsExpressSupported, isDtsHdSupported, isDtsSupported, isDtsXSupported, isEmeSupported, isFairPlaySupported, isFairPlayV1Supported, isFairPlayV2Supported, isFairPlayV3Supported, isFlacSupported, isFullHDScreenSupported, isGifSupported, isH264BaselineSupported, isH264HighSupported, isH264MainSupported, isHDScreenSupported, isHdrScreenSupported, isHeifSupported, isHevcMain10Supported, isHevcMainSupported, isImageSupported, isJpegSupported, isMmsSupported, isMp3Supported, isMp4AudioSupported, isMpeg2TSupported, isMpegHAudioSupported, isMseSupported, isNativeHlsSupported, isNativeMpdSupported, isNativeMssSupported, isOpusSupported, isPlayReadySL150Supported, isPlayReadySL2000Supported, isPlayReadySL3000Supported, isPlayReadySupported, isPngSupported, isPrimetimeSupported, isSDScreenSupported, isSvgSupported, isTypeSupported, isVorbisSupported, isVp8Supported, isVp9Supported, isWebpSupported, isWidevineL1Supported, isWidevineL3Supported, isWidevineSupported };
export { AAC_CONTENT_TYPE, APNG_CONTENT_TYPE, AV1_CONTENT_TYPE, AVIF_CONTENT_TYPE, CLEAR_KEY_SYSTEM, DOLBY_AC3_CONTENT_TYPE, DOLBY_AC4_CONTENT_TYPE, DOLBY_ATMOS_CONTENT_TYPE, DOLBY_EC3_CONTENT_TYPE, DOLBY_VISION_CONTENT_TYPE, DTS_CORE_CONTENT_TYPE, DTS_HD_CORE_PLUS_EXTENSION_CONTENT_TYPE, DTS_HD_LBR_CONTENT_TYPE, DTS_UHD_PROFILE_2_CONTENT_TYPE, DTS_UHD_PROFILE_3_CONTENT_TYPE, EVC_BASELINE_CONTENT_TYPE, EVC_MAIN_CONTENT_TYPE, FAIRPLAY_KEY_SYSTEM, FAIRPLAY_V1_KEY_SYSTEM, FAIRPLAY_V2_KEY_SYSTEM, FAIRPLAY_V3_KEY_SYSTEM, FLAC_CONTENT_TYPE, GIF_CONTENT_TYPE, H264_BASELINE_CONTENT_TYPE, H264_HIGH_CONTENT_TYPE, H264_MAIN_CONTENT_TYPE, HEIF_CONTENT_TYPE, HEV_MAIN10_CONTENT_TYPE, HEV_MAIN_CONTENT_TYPE, HLS_CONTENT_TYPE, HVC_MAIN10_CONTENT_TYPE, HVC_MAIN_CONTENT_TYPE, JPEG_CONTENT_TYPE, MP3_CONTENT_TYPE, MP4_AUDIO_CONTENT_TYPE, MPD_CONTENT_TYPE, MPEG2T_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_1_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_1_MULTISTREAM_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_2_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_2_MULTISTREAM_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_3_CONTENT_TYPE, MPEG_H_AUDIO_LC_PROFILE_LEVEL_3_MULTISTREAM_CONTENT_TYPE, MSS_CONTENT_TYPE, OPUS_CONTENT_TYPE, PLAYREADY_KEY_SYSTEM, PLAYREADY_RECOMMENDATION_KEY_SYSTEM, PNG_CONTENT_TYPE, PRIMETIME_KEY_SYSTEM, SVG_CONTENT_TYPE, TTML_CONTENT_TYPE, VORBIS_CONTENT_TYPE, VP8_CONTENT_TYPE, VP9_CONTENT_TYPE, VVC1_MAIN10_CONTENT_TYPE, VVCI_MAIN10_CONTENT_TYPE, WEBP_CONTENT_TYPE, WEBVTT_CONTENT_TYPE, WIDEWINE_KEY_SYSTEM, XHE_AAC_CONTENT_TYPE, canPlayType, defaultVideoElement, getDevicePixelRatio, getGpuRenderer, getGpuVendor, getIsMobile, getResolutionBadge, getResolutionMode, getScreenDepth, getScreenHeight, getScreenWidth, is10KScreenSupported, is16KScreenSupported, is2KScreenSupported, is2dot5KScreenSupported, is32KScreenSupported, is4KScreenSupported, is5KScreenSupported, is6KScreenSupported, is8KScreenSupported, isAPngSupported, isAV1Supported, isAacSupported, isAvifSupported, isClearKeySupported, isContentTypeSupported, isDolbyAtmosSupported, isDolbyDigitalPlusSupported, isDolbyDigitalSupported, isDolbyVisionSupported, isDtsExpressSupported, isDtsHdSupported, isDtsSupported, isDtsXSupported, isEmeSupported, isEvcBaselineSupported, isEvcMainSupported, isFairPlaySupported, isFairPlayV1Supported, isFairPlayV2Supported, isFairPlayV3Supported, isFlacSupported, isFullHDScreenSupported, isGifSupported, isH264BaselineSupported, isH264HighSupported, isH264MainSupported, isHDScreenSupported, isHdrScreenSupported, isHeifSupported, isHevcMain10Supported, isHevcMainSupported, isImageSupported, isJpegSupported, isMmsSupported, isMp3Supported, isMp4AudioSupported, isMpeg2TSupported, isMpegHAudioSupported, isMseSupported, isNativeHlsSupported, isNativeMpdSupported, isNativeMssSupported, isOpusSupported, isPlayReadySL150Supported, isPlayReadySL2000Supported, isPlayReadySL3000Supported, isPlayReadySupported, isPngSupported, isPrimetimeSupported, isSDScreenSupported, isSvgSupported, isTypeSupported, isVorbisSupported, isVp8Supported, isVp9Supported, isVvcMain10Supported, isWebpSupported, isWidevineL1Supported, isWidevineL3Supported, isWidevineSupported };

@@ -71,1 +71,22 @@ export declare function isVp8Supported(): {

};
export declare function isVvcMain10Supported(): {
file: boolean;
mediaSource: boolean;
any: boolean;
both: boolean;
contentType: string;
};
export declare function isEvcBaselineSupported(): {
file: boolean;
mediaSource: boolean;
any: boolean;
both: boolean;
contentType: string;
};
export declare function isEvcMainSupported(): {
file: boolean;
mediaSource: boolean;
any: boolean;
both: boolean;
contentType: string;
};

2

package.json
{
"name": "detect-audio-video",
"version": "0.23.0",
"version": "0.25.0",
"description": "Detect audio video features",

@@ -5,0 +5,0 @@ "module": "dist/index.js",

@@ -19,11 +19,38 @@ # detect-audio-video

+ [ScreenDetails](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails): primary, internal and etc.
- GPU info
- DRM
+ Microsoft PlayReady
+ Google Widevine Modular
+ Microsoft PlayReady SL150, SL2000, SL3000
+ Google Widevine Modular L1, L3
+ Apple FairPlay
+ Adobe Primetime
- Native streaming support
+ DASH
+ HLS
+ MSS
- HTMLVideoElement features
+ Media Source Extensions
+ Encrypted Media Extensions
+ Managed Media Source
- 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
+ HEIF
+ AVIF
+ WebP

@@ -30,0 +57,0 @@ ## Install

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc