detect-audio-video
Advanced tools
Comparing version 0.8.0 to 0.8.1
export * from './audio'; | ||
export * from './video'; | ||
export * from './screen'; | ||
@@ -3,0 +4,0 @@ export * from './gpu'; |
@@ -71,2 +71,24 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"'; | ||
const H264_BASELINE_CONTENT_TYPE = 'video/mp4; codecs="avc1.42E01E"'; | ||
const H264_MAIN_CONTENT_TYPE = 'video/mp4; codecs="avc1.4D401E"'; | ||
const H264_HIGH_CONTENT_TYPE = 'video/mp4; codecs="avc1.64001E"'; | ||
const VP8_CONTENT_TYPE = 'video/webm; codecs="vp8"'; | ||
const VP9_CONTENT_TYPE = 'video/webm; codecs="vp9"'; | ||
function isVp8Supported() { | ||
return isTypeSupported(VP8_CONTENT_TYPE); | ||
} | ||
function isVp9Supported() { | ||
return isTypeSupported(VP9_CONTENT_TYPE); | ||
} | ||
function isH264BaselineSupported() { | ||
return isTypeSupported(H264_BASELINE_CONTENT_TYPE); | ||
} | ||
function isH264MainSupported() { | ||
return isTypeSupported(H264_MAIN_CONTENT_TYPE); | ||
} | ||
function isH264HighSupported() { | ||
return isTypeSupported(H264_HIGH_CONTENT_TYPE); | ||
} | ||
function getDevicePixelRatio() { | ||
@@ -252,8 +274,2 @@ return window.devicePixelRatio || 1; | ||
const H264_BASELINE_CONTENT_TYPE = 'video/mp4; codecs="avc1.42E01E"'; | ||
const H264_MAIN_CONTENT_TYPE = 'video/mp4; codecs="avc1.4D401E"'; | ||
const H264_HIGH_CONTENT_TYPE = 'video/mp4; codecs="avc1.64001E"'; | ||
const VP8_CONTENT_TYPE = 'video/webm; codecs="vp8"'; | ||
const VP9_CONTENT_TYPE = 'video/webm; codecs="vp9"'; | ||
const FAIRPLAY_KEY_SYSTEM = 'com.apple.fps'; | ||
@@ -458,2 +474,2 @@ const FAIRPLAY_V1_KEY_SYSTEM = 'com.apple.fps.1_0'; | ||
export { AAC_CONTENT_TYPE, CLEAR_KEY_SYSTEM, DOLBY_AC3_CONTENT_TYPE, DOLBY_AC4_CONTENT_TYPE, DOLBY_ATMOS_CONTENT_TYPE, DOLBY_EC3_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, H264_BASELINE_CONTENT_TYPE, H264_HIGH_CONTENT_TYPE, H264_MAIN_CONTENT_TYPE, HLS_CONTENT_TYPE, MPD_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, PRIMETIME_KEY_SYSTEM, TTML_CONTENT_TYPE, VORBIS_CONTENT_TYPE, VP8_CONTENT_TYPE, VP9_CONTENT_TYPE, WEBVTT_CONTENT_TYPE, WIDEWINE_KEY_SYSTEM, XHE_AAC_CONTENT_TYPE, canPlayType, defaultVideoElement, getDevicePixelRatio, getGpuRenderer, getGpuVendor, getScreenBadge, getScreenDepth, getScreenHeight, getScreenWidth, is10KScreenSupported, is16KScreenSupported, is2KScreenSupported, is2dot5KScreenSupported, is4KScreenSupported, is5KScreenSupported, is6KScreenSupported, is8KScreenSupported, isAacSupported, isClearKeySupported, isDolbyAtmosSupported, isDolbyDigitalPlusSupported, isDolbyDigitalSupported, isDtsExpressSupported, isDtsHdSupported, isDtsSupported, isDtsXSupported, isFairPlaySupported, isFairPlayV1Supported, isFairPlayV2Supported, isFairPlayV3Supported, isFlacSupported, isFullHDScreenSupported, isHDScreenSupported, isHdrScreenSupported, isMpegHAudioSupported, isOpusSupported, isPlayReadySL150Supported, isPlayReadySL2000Supported, isPlayReadySL3000Supported, isPlayReadySupported, isPrimetimeSupported, isSDScreenSupported, isTypeSupported, isVorbisSupported, isWidevineL1Supported, isWidevineL3Supported, isWidevineSupported }; | ||
export { AAC_CONTENT_TYPE, CLEAR_KEY_SYSTEM, DOLBY_AC3_CONTENT_TYPE, DOLBY_AC4_CONTENT_TYPE, DOLBY_ATMOS_CONTENT_TYPE, DOLBY_EC3_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, H264_BASELINE_CONTENT_TYPE, H264_HIGH_CONTENT_TYPE, H264_MAIN_CONTENT_TYPE, HLS_CONTENT_TYPE, MPD_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, PRIMETIME_KEY_SYSTEM, TTML_CONTENT_TYPE, VORBIS_CONTENT_TYPE, VP8_CONTENT_TYPE, VP9_CONTENT_TYPE, WEBVTT_CONTENT_TYPE, WIDEWINE_KEY_SYSTEM, XHE_AAC_CONTENT_TYPE, canPlayType, defaultVideoElement, getDevicePixelRatio, getGpuRenderer, getGpuVendor, getScreenBadge, getScreenDepth, getScreenHeight, getScreenWidth, is10KScreenSupported, is16KScreenSupported, is2KScreenSupported, is2dot5KScreenSupported, is4KScreenSupported, is5KScreenSupported, is6KScreenSupported, is8KScreenSupported, isAacSupported, isClearKeySupported, isDolbyAtmosSupported, isDolbyDigitalPlusSupported, isDolbyDigitalSupported, isDtsExpressSupported, isDtsHdSupported, isDtsSupported, isDtsXSupported, isFairPlaySupported, isFairPlayV1Supported, isFairPlayV2Supported, isFairPlayV3Supported, isFlacSupported, isFullHDScreenSupported, isH264BaselineSupported, isH264HighSupported, isH264MainSupported, isHDScreenSupported, isHdrScreenSupported, isMpegHAudioSupported, isOpusSupported, isPlayReadySL150Supported, isPlayReadySL2000Supported, isPlayReadySL3000Supported, isPlayReadySupported, isPrimetimeSupported, isSDScreenSupported, isTypeSupported, isVorbisSupported, isVp8Supported, isVp9Supported, isWidevineL1Supported, isWidevineL3Supported, isWidevineSupported }; |
{ | ||
"name": "detect-audio-video", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Detect audio video features", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
# detect-audio-video | ||
[![NPM version](https://img.shields.io/npm/v/detect-audio-video.svg?style=flat)](https://www.npmjs.com/package/detect-audio-video) | ||
[![NPM downloads](https://img.shields.io/npm/dm/detect-audio-video.svg?style=flat)](https://www.npmjs.com/package/detect-audio-video) | ||
[![bundlephobia](https://badgen.net/bundlephobia/minzip/detect-audio-video)](https://bundlephobia.com/result?p=detect-audio-video) | ||
[![install size](https://packagephobia.com/badge?p=detect-audio-video)](https://packagephobia.com/result?p=detect-audio-video) | ||
Detect audio video features. | ||
@@ -15,3 +21,3 @@ | ||
```js | ||
import { isACCSupported } from 'detect-audio-video'; | ||
import { isAacSupported } from 'detect-audio-video'; | ||
@@ -18,0 +24,0 @@ console.log(`AAC supported: ${isAacSupported()}`); |
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
25969
572
28