Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@eyevinn/is-drm-supported

Eyevinn716MIT2.0.0TypeScript support: included

HTML5 MSE DRM support detection library

drm, video, audio, support, typescript

readme

is-drm-supported

Tiny MSE video and audio DRM detection library.

Usage

The package exports the following asynchronous methods:

isPlayreadyLegacySupported

isPlayreadyChromecastSupported

isPlayreadySupported

isPlayreadyHardwareSupported

isWidevineSupported

isFairplayLegacySupported

isFairplaySupported

Example

import { isFairplaySupported } from "@eyevinn/is-drm-supported";

const hasFairplaySupport = await isFairplaySupported();

Contributing

The project uses semantic-release to automatically generate release notes and semantic versioning from on commits, it is important to follow some rules when committing.

This project uses conventional commits.

Read Using Git with Discipline.

Read How to Write a Commit Message.

changelog

2.0.0 (2024-06-13)

  • feat!: update playready key system checks (0051866)

BREAKING CHANGES

  • The original isPlayreadySupported has been renamed to isPlayreadyLegacySupported. The new isPlayreadySupported now checks com.microsoft.playready.recommendation.

com.microsoft.playready is deprecated by Microsoft.

https://learn.microsoft.com/en-us/playready/overview/key-system-strings

1.4.1 (2023-02-28)

Bug Fixes

  • remove node engine limitation (018a823)

1.4.0 (2023-02-27)

Features

  • add legacy fairplay support (26fe083)

1.2.1 (2022-03-28)

Bug Fixes

1.2.0 (2021-12-15)

Features

  • remove accidental polyfilling (296ad05)

1.1.0 (2021-12-15)

Bug Fixes

  • update linst-staged to correctly run scripts (78ddbe6)

Features

  • add isPlayreadyChromecastSupported (a3a4b40)

1.0.1 (2021-12-03)

Bug Fixes

1.0.0 (2021-12-03)

Features