detect-audio-video
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -1,3 +0,3 @@ | ||
export declare function isWidevineSupported(): Promise<boolean>; | ||
export declare function isWidevineL1Supported(): Promise<boolean>; | ||
export declare function isWidevineL3Supported(): Promise<boolean>; | ||
export declare function isWidevineSupported(contentType?: string, initDataTypes?: string[]): Promise<boolean>; | ||
export declare function isWidevineL1Supported(contentType?: string, initDataTypes?: string[]): Promise<boolean>; | ||
export declare function isWidevineL3Supported(contentType?: string, initDataTypes?: string[]): Promise<boolean>; |
@@ -441,9 +441,9 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"'; | ||
function isWidevineSupported() { | ||
function isWidevineSupported(contentType = H264_BASELINE_CONTENT_TYPE, initDataTypes = ['cenc']) { | ||
return requestMediaKeySystemAccess(WIDEWINE_KEY_SYSTEM, [ | ||
{ | ||
initDataTypes: ['cenc'], | ||
initDataTypes, | ||
videoCapabilities: [ | ||
{ | ||
contentType: H264_BASELINE_CONTENT_TYPE, | ||
contentType, | ||
}, | ||
@@ -454,9 +454,9 @@ ], | ||
} | ||
function isWidevineL1Supported() { | ||
function isWidevineL1Supported(contentType = H264_BASELINE_CONTENT_TYPE, initDataTypes = ['cenc']) { | ||
return requestMediaKeySystemAccess(WIDEWINE_KEY_SYSTEM, [ | ||
{ | ||
initDataTypes: ['cenc'], | ||
initDataTypes, | ||
videoCapabilities: [ | ||
{ | ||
contentType: H264_BASELINE_CONTENT_TYPE, | ||
contentType, | ||
robustness: 'HW_SECURE_DECODE', | ||
@@ -468,9 +468,9 @@ }, | ||
} | ||
function isWidevineL3Supported() { | ||
function isWidevineL3Supported(contentType = H264_BASELINE_CONTENT_TYPE, initDataTypes = ['cenc']) { | ||
return requestMediaKeySystemAccess(WIDEWINE_KEY_SYSTEM, [ | ||
{ | ||
initDataTypes: ['cenc'], | ||
initDataTypes, | ||
videoCapabilities: [ | ||
{ | ||
contentType: H264_BASELINE_CONTENT_TYPE, | ||
contentType, | ||
robustness: 'SW_SECURE_DECODE', | ||
@@ -477,0 +477,0 @@ }, |
{ | ||
"name": "detect-audio-video", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "Detect audio video features", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -29,3 +29,2 @@ # detect-audio-video | ||
## Install | ||
@@ -32,0 +31,0 @@ `npm install detect-audio-video --save-dev` |
30666
41