Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TheWidlarzGroup/react-native-video/llms.txt
Use this file to discover all available pages before exploring further.
DrmParams
Configuration for Digital Rights Management (DRM) when playing protected video content.Properties
The URL for the DRM license server.Platforms: Android, iOS, visionOS
The URL for the DRM certificate (FairPlay only).Platforms: iOS, visionOS
Unique identifier for the protected content (FairPlay only).Platforms: iOS, visionOS
The DRM system to use.Platforms: Android, iOS, visionOSPossible values:
'widevine'- Widevine DRM (Android)'fairplay'- FairPlay DRM (iOS/visionOS)- Custom string for other DRM systems
Custom HTTP headers to send with the license request.Platforms: Android, iOS, visionOS
Whether to allow multiple DRM sessions simultaneously.Platforms: Android only
Custom function to retrieve the license. Useful for implementing custom license acquisition logic.Platforms: iOS onlyThe function receives an
OnGetLicensePayload object and must return a Promise that resolves to the license string.OnGetLicensePayload
Payload object passed to thegetLicense function:
The content ID for the DRM license request. Unique identifier for the content being played.
The license URL for the DRM license request.
The key URL for the DRM license request. Typically starts with
skd:// or clearkey://.The Secure Playback Context (SPC) for the DRM license request. Base64-encoded string containing information about the playback environment.
DRMType
'widevine'- Google Widevine (Android)'fairplay'- Apple FairPlay (iOS/visionOS)- Custom string for other DRM systems
Examples
Widevine DRM (Android)
FairPlay DRM (iOS)
Custom License Acquisition (iOS)
Multi-Session DRM (Android)
Platform Support
| Property | Android | iOS | visionOS | tvOS |
|---|---|---|---|---|
licenseUrl | ✓ | ✓ | ✓ | ✓ |
certificateUrl | - | ✓ | ✓ | ✓ |
contentId | - | ✓ | ✓ | ✓ |
type | ✓ | ✓ | ✓ | ✓ |
licenseHeaders | ✓ | ✓ | ✓ | ✓ |
multiSession | ✓ | - | - | - |
getLicense | - | ✓ | ✓ | ✓ |
Related Types
- VideoConfig - Main video configuration type that includes DRM parameters