{"id":23575997,"url":"https://github.com/theoplayer/react-native-theoplayer-drm","last_synced_at":"2025-08-29T19:31:24.193Z","repository":{"id":163401040,"uuid":"596011725","full_name":"THEOplayer/react-native-theoplayer-drm","owner":"THEOplayer","description":"DRM connectors for react-native-theoplayer","archived":true,"fork":false,"pushed_at":"2025-03-31T12:27:47.000Z","size":866,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-07-08T19:01:04.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/THEOplayer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-01T09:25:27.000Z","updated_at":"2025-03-31T12:28:32.000Z","dependencies_parsed_at":"2024-01-22T17:01:25.304Z","dependency_job_id":"e94326f7-9a40-4def-b122-d152c6fd6e18","html_url":"https://github.com/THEOplayer/react-native-theoplayer-drm","commit_stats":{"total_commits":92,"total_committers":7,"mean_commits":"13.142857142857142","dds":0.5,"last_synced_commit":"f0896baf23b898c87a4ab747d8830b74961722d4"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/THEOplayer/react-native-theoplayer-drm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Freact-native-theoplayer-drm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Freact-native-theoplayer-drm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Freact-native-theoplayer-drm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Freact-native-theoplayer-drm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THEOplayer","download_url":"https://codeload.github.com/THEOplayer/react-native-theoplayer-drm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Freact-native-theoplayer-drm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272749299,"owners_count":24986867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-26T21:11:42.910Z","updated_at":"2025-08-29T19:31:24.185Z","avatar_url":"https://github.com/THEOplayer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native THEOplayer DRM\n\n\u003e [!CAUTION]\n\u003e This connector repository was moved to [THEOplayer/react-native-connectors](https://github.com/THEOplayer/react-native-connectors).\n\nThe `@theoplayer/react-native-drm` package provides a set of connectors for [react-native-theoplayer](https://github.com/THEOplayer/react-native-theoplayer),\nallowing playback of DRM-protected content.\n\n## Installation\n\n```sh\nnpm install @theoplayer/react-native-drm\n```\n\n## Usage\n\nThe connector needs to be registered to the `ContentProtectionRegistry`, providing both\n`integrationId` and `keySystemId`:\n\n```typescript\nimport { ContentProtectionRegistry } from 'react-native-theoplayer';\nimport { EzdrmFairplayContentProtectionIntegrationFactory } from 'react-native-theoplayer-drm';\n\nContentProtectionRegistry.registerContentProtectionIntegration(\n  'ezdrm',   // integrationId\n  'fairplay', // keySystemId\n  new EzdrmFairplayContentProtectionIntegrationFactory()\n);\n```\n\nThe combination of both `integrationId` and `keySystemId` points the player towards the connector\nfor a specific source, in this case the `ezdrm` connector for `fairplay`:\n\n```typescript\nconst source = {\n  \"sources\": {\n    \"src\": \"\u003csource_url\u003e\",\n    \"contentProtection\": {\n      \"integration\": \"ezdrm\",\n      \"fairplay\": {\n        \"certificate\": \"\u003cbase64encoded_certificate\u003e\",\n        \"licenseAcquisitionURL\": \"\u003clicense_url\u003e\"\n      },\n    }\n  }\n};\n```\n\n## Connectors\n\nThe [THEOplayer DRM integrations repository](https://github.com/THEOplayer/samples-drm-integration)\ncontains a list of integrations for native Web, Android \u0026 iOS THEOplayer SDKs.\n\nAs the content protection API of `react-native-theoplayer` is very similar to that of\nTHEOplayer's native Web SDK, the available Web connectors can mostly be reused as-is.\nThese connectors are not available as npm packages however, and sometimes have dependencies on web-specific\nutilities. Because of this, the `@theoplayer/react-native-drm` package provides\nthe following connectors, readily available to be used by `react-native-theoplayer`:\n\n| Vendor                       | Widevine    | Playready   | FairPlay |\n|------------------------------|-------------|-------------|----------|\n| BuyDRM KeyOS                 | \u0026check;     | \u0026check;     | \u0026check;  |\n| EZDRM                        | \u0026check; (*) | \u0026check; (*) | \u0026check;  |\n| Verimatrix MultiDRM Core DRM | \u0026check;     | \u0026check;     | \u0026check;  |\n| Anvato                       | \u0026check;     | \u0026cross;     | \u0026check;  |\n| Axinom                       | \u0026check;     | \u0026cross;     | \u0026check;  |\n| CastLabs                     | \u0026check;     | \u0026check;     | \u0026check;  |\n| PallyCon                     | \u0026cross;     | \u0026cross;     | \u0026check;  |\n\n(*) No connector is needed for these DRM vendors; it is handled by the player's default DRM flow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoplayer%2Freact-native-theoplayer-drm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoplayer%2Freact-native-theoplayer-drm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoplayer%2Freact-native-theoplayer-drm/lists"}