@svta/common-media-library
Version:
A common library for media playback in JavaScript
15 lines • 633 B
TypeScript
/**
* Filters and returns the supported key system configuration for a given system string.
*
* @param keySystem - Key system string such as 'com.widevine.alpha'
* @param configs - An array of key system configurations.
* @returns The first supported configuration or null if none are supported.
*
* @group DRM
* @beta
*/
export declare function getSupportedKeySystemConfiguration(keySystem: string, configs: Iterable<MediaKeySystemConfiguration>): {
supportedAudio: MediaKeySystemMediaCapability[];
supportedVideo: MediaKeySystemMediaCapability[];
};
//# sourceMappingURL=getSupportedKeySystemConfiguration.d.ts.map