Welcome to the Inkrypt Video Player Flutter SDK: a Flutter plugin for DRM-protected video playback, built on top of the native Inkrypt Video Player SDKs for iOS and Android.
This guide covers everything you need to know before writing a single line of code.
How It Works
The Flutter SDK wraps the native iOS and Android Inkrypt Video Player SDKs using Flutter's platform view mechanism. Video rendering, DRM decryption, and the built-in player UI all happen on the native layer. The Dart layer exposes a widget and a controller API to load videos and control playback from Flutter.
Requirements
Flutter
| Requirement | Minimum Version |
|---|---|
| Flutter | 3.3.0 |
| Dart SDK | 3.2.6 |
Verify your Flutter installation:
flutter doctor
Android
| Requirement | Value |
|---|---|
| Minimum Android SDK | 25 (Android 7.1) |
| Target Android SDK | 34 |
| Kotlin Version | Below 2.0.0 |
iOS
| Requirement | Minimum Version |
|---|---|
| iOS Deployment Target | 16.1 |
| Xcode | 15.3 |
| macOS (development machine) | Sonoma 14.5+ |
| Swift | 5.9+ |
| CocoaPods | Latest stable |
Why iOS 16.1? The native iOS SDK uses modern FairPlay DRM APIs that require iOS 16.6 as the minimum deployment target.
Physical device required: FairPlay DRM, the content protection system used by this SDK, is not supported on the iOS Simulator. You must test on a real iPhone or iPad.
Prerequisites
Android
Before continuing, ensure you have:
- Android Studio Koala (2024.1.1) or later — Download
- A physical or emulated Android device running API 25+
iOS
Before continuing, ensure all of the following are in place:
- Xcode 15.3 or later
Download from the Mac App Store or developer.apple.com/download. After installation, open Xcode at least once to complete the initial component setup.
- Xcode Command Line Tools
Open Terminal and run:
xcode-select --install
Then verify:
xcode-select -p
# Expected output: /Applications/Xcode.app/Contents/Developer
After installation, open Xcode → Settings → Locations and confirm the Command Line Tools dropdown is set to your installed version.
- CocoaPods
The iOS integration uses CocoaPods to link the native framework. Install it with:
sudo gem install cocoapods
Verify:
pod --version
- A physical iOS device
Required for all DRM video playback testing. The iOS Simulator does not support FairPlay DRM.
Connect your device, unlock it, and tap Trust This Computer if prompted.