react-native-video
Version:
A <Video /> element for react-native
174 lines (117 loc) β’ 8.83 kB
Markdown
[](https://thewidlarzgroup.com/?utm_source=rnv&utm_medium=readme&utm_id=banner)
The most battle-tested open-source video player component for React Native with support for DRM, offline playback, HLS/DASH streaming, and more.
## π Features
- π± Plays all video formats natively supported by iOS/Android
- βΆοΈ Local and remote playback
- π Streaming: HLS β’ DASH β’ SmoothStreaming
- π DRM: Widevine & FairPlay ([See free DRM stream example](https://www.thewidlarzgroup.com/services/free-drm-token-generator-for-video?utm_source=rnv&utm_medium=readme&utm_id=free-drm))
- π΄ Offline playback, video download, support for side-tracks and side-captions (via [optional SDK](https://docs.thewidlarzgroup.com/offline-video-sdk?utm_source=rnv&utm_medium=readme&utm_id=features-text))
- ποΈ Fine-grained control over tracks, buffering & events
- π§© Expo plugin support
- π Basic Web Support
- π± Picture in Picture
- πΊ TV Support
## β¨ Project Status
| Version | State | Architecture |
|---------|-------|--------------|
| **v5 and lower** | β End-of-life [Commercial Support Available](https://www.thewidlarzgroup.com/blog/react-native-video-upgrade-challenges-custom-maintenance-support#how-we-can-help?utm_source=rnv&utm_medium=readme&utm_id=upgradev5) | Old Architecture |
| **v6** | π Maintained (community + TWG) | Old + New (Interop Layer) |
| [**v7**](https://github.com/TheWidlarzGroup/react-native-video/tree/v7) | [π Active Development](https://github.com/TheWidlarzGroup/react-native-video/tree/v7) | Old + New (Full Support) |
[`react-native-video` v7](https://github.com/TheWidlarzGroup/react-native-video/tree/v7) introduces full support for the new React Native architecture, unlocking better performance, improved consistency, and modern native modules.
---
## π Documentation & Examples
- π [Documentation](https://docs.thewidlarzgroup.com/react-native-video/)
- π¦ [Example: Free DRM Stream](https://www.thewidlarzgroup.com/services/free-drm-token-generator-for-video?utm_source=rnv&utm_medium=readme&utm_id=free-drm)
- π¦ [Example: Offline SDK integration](https://docs.thewidlarzgroup.com/offline-video-sdk)
## π Quick Start
### Install
```bash
# Install dependencies
yarn add react-native-video
# Install pods
cd ios && pod install
```
### Usage
```tsx
import Video from 'react-native-video';
export default () => (
<Video
source={{ uri: 'https://www.w3schools.com/html/mov_bbb.mp4' }}
style={{ width: '100%', aspectRatio: 16 / 9 }}
controls
/>
);
```
---
## π§© Plugins
<a href="https://sdk.thewidlarzgroup.com/offline-video?utm_source=rnv&utm_medium=readme&utm_id=banner">
<img src="./docs/assets/baners/offline-sdk-banner.png" alt="Offline SDK Preview" width="40%" align="right" />
</a>
### 1 Β· π₯ Offline SDK
#### Need Offline Video Playback in React Native?
If you're building a video-first app and need to **download HLS streams for offline playback**, you're in the right place.
#### π [Check Offline Video SDK for React Native](https://sdk.thewidlarzgroup.com/offline-video?utm_source=rnv&utm_medium=readme&utm_id=check-offline-video-sdk)
This SDK supports:
- π Offline HLS playback
- π§ Multi-language audio track downloads
- π¬ Subtitles support
- π DRM license handling
- π Analytics & state tracking
---
#### π How to get access?
- Get a **free trial** (no credit card required)
- Use our [starter project](https://github.com/TheWidlarzGroup/react-native-offline-video-starter) to see it in action
- Integrates with both `v6` and `v7` versions
π **[Start Free Trial on the SDK Platform β](https://sdk.thewidlarzgroup.com/signup?utm_source=rnv&utm_medium=readme&utm_id=start-trial-offline-video-sdk)**
---
<a href="https://sdk.thewidlarzgroup.com/background-uploader?utm_source=rnv&utm_medium=readme&utm_id=banner">
<img src="./docs/assets/baners/bgupload-sdk-banner.png" alt="Offline SDK Preview" width="40%" align="right" />
</a>
### 2 Β· β‘ Background Upload SDK
#### Need Reliable Video Uploads in React Native?
If you're building a video-first app and need to **upload large video files reliably in the background**, you're in the right place.
#### π [Check Background Upload SDK for React Native](https://sdk.thewidlarzgroup.com/background-uploader?utm_source=rnv&utm_medium=readme&utm_id=check-background-upload-sdk)
This SDK supports:
- π€ Background video uploads
- π Automatic retry mechanisms
- π Upload progress tracking
- π‘οΈ Resume interrupted uploads
- π± Works when app is backgrounded
- π Secure upload handling
---
#### π Perfect for Apps Uploading Large Media
Whether you're building social media apps, content platforms, or enterprise solutions, our Background Upload SDK ensures your users can upload videos seamlessly without interruption.
#### π Ready to Get Started?
Contact us to learn more about integrating background video uploads into your React Native application.
π **Contact us at [hi@thewidlarzgroup.com](mailto:hi@thewidlarzgroup.com)**
---
### 3 Β· π§ͺ Architecture
Write your own plugins to extend library logic, attach analytics or add custom workflows - **without forking** the core SDK.
β [Plugin documentation](https://docs.thewidlarzgroup.com/react-native-video/docs/v6/other/plugin?utm_source=rnv&utm_medium=readme&utm_id=plugin-text)
---
## πΌ TWG Services & Products
| Offering | Description |
|----------|-------------|
| [**Professional Support Packages**](https://www.thewidlarzgroup.com/issue-boost?utm_source=rnv&utm_medium=readme&utm_campaign=professional-support-packages#Contact) | Priority bug-fixes, guaranteed SLAs, [roadmap influence](https://github.com/orgs/TheWidlarzGroup/projects/6) |
| [**Issue Booster**](https://www.thewidlarzgroup.com/issue-boost?utm_source=rnv&utm_medium=readme) | Fast-track urgent fixes with a payβperβissue model |
| [**Offline Video SDK**](https://sdk.thewidlarzgroup.com/offline-video?utm_source=rnv&utm_medium=readme&utm_campaign=downloading&utm_id=offline-video-sdk-link) | Plugβandβplay secure download solution for iOS & Android |
| [**Background Upload SDK**](https://sdk.thewidlarzgroup.com/background-uploader?utm_source=rnv&utm_medium=readme&utm_campaign=uploading&utm_id=background-upload-sdk-link) | Reliable background upload solution for iOS & Android |
| [**Integration Support**](https://www.thewidlarzgroup.com/?utm_source=rnv&utm_medium=readme&utm_campaign=integration-support#Contact) | Handsβon help integrating video, DRM & offline into your app |
| [**Free DRM Token Generator**](https://www.thewidlarzgroup.com/services/free-drm-token-generator-for-video?utm_source=rnv&utm_medium=readme&utm_id=free-drm) | Generate Widevine / FairPlay tokens for testing |
| [**Ready Boilerplates**](https://www.thewidlarzgroup.com/showcases?utm_source=rnv&utm_medium=readme) | Ready-to-use apps with offline HLS/DASH DRM, video frame scrubbing, TikTok-style video feed, background uploads, Skia-based frame processor (R&D phase), and more |
| [**React Native Video Upgrade Guide**](https://www.thewidlarzgroup.com/blog/react-native-video-upgrade-challenges-custom-maintenance-support?utm_source=rnv&utm_medium=readme&utm_id=upgrade-blog&utm_campaign=v7) | Common upgrade pitfalls & how to solve them |
*See how [TWG](https://www.thewidlarzgroup.com/?utm_source=rnv&utm_medium=readme&utm_id=services-text) helped **Learnn** ship a worldβclass player in record time - [case study](https://gitnation.com/contents/a-4-year-retrospective-lessons-learned-from-building-a-video-player-from-scratch-with-react-native).*
Contact us at [hi@thewidlarzgroup.com](mailto:hi@thewidlarzgroup.com)
## π Social
- π¦ **X / Twitter** - [follow product & release updates](https://x.com/TheWidlarzGroup)
- π¬ **Discord** - [talk to the community and us](https://discord.gg/9WPq6Yx)
- πΌ **LinkedIn** - [see TWG flexing](https://linkedin.com/company/the-widlarz-group)
## π° Community & Media
- π½ **React Summit US** β How TWG helped Learnn boost video performance on React Native.
[Watch the talk Β»](https://gitnation.com/contents/a-4-year-retrospective-lessons-learned-from-building-a-video-player-from-scratch-with-react-native)
- 𧨠**v7 deep dive** β Why weβre building v7 with Nitro Modules
[Watch on X Β»](https://x.com/krzysztof_moch/status/1854162551946478051)
- π οΈ **Well-maintained open-source library** - What does it truly mean? - Bart's talk for React Native Warsaw
[Watch here Β»](https://www.youtube.com/watch?v=RAQQwGCQNqY)
- πΊ **βOver the Topβ Panel** - Building Streaming Apps for Mobile, Web, and Smart TVs - Bart giving his insights on the industry
[Watch here Β»](https://youtu.be/j2b_bG-32JI)