An open API service indexing awesome lists of open source software.

https://github.com/Eyevinn/is-drm-supported

HTML5 MSE DRM support detection library
https://github.com/Eyevinn/is-drm-supported

library

Last synced: 12 months ago
JSON representation

HTML5 MSE DRM support detection library

Awesome Lists containing this project

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

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

const hasFairplaySupport = await isFairplaySupported();
```

## Contributing

The project uses [semantic-release](https://github.com/semantic-release/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](https://www.conventionalcommits.org/en/v1.0.0/#summary).

Read [Using Git with Discipline](https://drewdevault.com/2019/02/25/Using-git-with-discipline.html).

Read [How to Write a Commit Message](https://chris.beams.io/posts/git-commit/).