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
- Host: GitHub
- URL: https://github.com/Eyevinn/is-drm-supported
- Owner: Eyevinn
- License: mit
- Created: 2021-12-03T15:10:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T06:44:30.000Z (about 2 years ago)
- Last Synced: 2025-06-11T05:17:38.845Z (about 1 year ago)
- Topics: library
- Language: TypeScript
- Homepage:
- Size: 159 KB
- Stars: 3
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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/).