{"id":13471998,"url":"https://github.com/TheWidlarzGroup/react-native-video","last_synced_at":"2025-03-26T15:30:56.792Z","repository":{"id":29625222,"uuid":"33166041","full_name":"TheWidlarzGroup/react-native-video","owner":"TheWidlarzGroup","description":"A \u003cVideo /\u003e component for react-native","archived":false,"fork":false,"pushed_at":"2024-10-29T09:32:37.000Z","size":32652,"stargazers_count":7188,"open_issues_count":183,"forks_count":2894,"subscribers_count":109,"default_branch":"master","last_synced_at":"2024-10-29T11:43:59.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://thewidlarzgroup.github.io/react-native-video/","language":"Swift","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/TheWidlarzGroup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2015-03-31T05:08:38.000Z","updated_at":"2024-10-29T09:31:55.000Z","dependencies_parsed_at":"2023-01-14T15:30:18.512Z","dependency_job_id":"d8a4c75a-c8d4-43fa-96b6-dbed8b9946c7","html_url":"https://github.com/TheWidlarzGroup/react-native-video","commit_stats":{"total_commits":1734,"total_committers":316,"mean_commits":5.487341772151899,"dds":0.8662053056516724,"last_synced_commit":"c1c7a056f124851ecc00c4ab2709b3220f6a2d82"},"previous_names":["react-native-community/react-native-video","brentvatne/react-native-video","thewidlarzgroup/react-native-video"],"tags_count":124,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWidlarzGroup%2Freact-native-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWidlarzGroup%2Freact-native-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWidlarzGroup%2Freact-native-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWidlarzGroup%2Freact-native-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheWidlarzGroup","download_url":"https://codeload.github.com/TheWidlarzGroup/react-native-video/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243597830,"owners_count":20316843,"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","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-07-31T16:00:50.999Z","updated_at":"2025-03-26T15:30:56.781Z","avatar_url":"https://github.com/TheWidlarzGroup.png","language":"Swift","funding_links":[],"categories":["Java","Kotlin","Swift","Players \u0026 Clients"],"sub_categories":["Mobile Players"],"readme":"# react-native-video\n🎬 `\u003cVideo\u003e` component for React Native\n\n## Documentation\ndocumentation is available at [docs.thewidlarzgroup.com/react-native-video/](https://docs.thewidlarzgroup.com/react-native-video/?utm_source=rnv\u0026utm_medium=readme\u0026utm_campaign=docs\u0026utm_id=text)\n\n## Examples\nYou can find several examples demonstrating the usage of react-native-video [here](https://github.com/TheWidlarzGroup/react-native-video/tree/master/examples). \u003cbr /\u003e\nThese include a [basic](https://github.com/TheWidlarzGroup/react-native-video/blob/master/examples/common/BasicExample.tsx) usage and [DRM example](https://github.com/TheWidlarzGroup/react-native-video/blob/master/examples/common/DRMExample.tsx) (with a [free DRM stream](https://www.thewidlarzgroup.com/services/free-drm-token-generator-for-video?utm_source=rnv\u0026utm_medium=readme\u0026utm_campaign=drm\u0026utm_id=free-drm)).\n\n## Usage\n\n```javascript\n// Load the module\n\nimport Video, {VideoRef} from 'react-native-video';\n\n// Within your render function, assuming you have a file called\n// \"background.mp4\" in your project. You can include multiple videos\n// on a single screen if you like.\n\nconst VideoPlayer = () =\u003e {\n const videoRef = useRef\u003cVideoRef\u003e(null);\n const background = require('./background.mp4');\n\n return (\n   \u003cVideo \n    // Can be a URL or a local file.\n    source={background}\n    // Store reference  \n    ref={videoRef}\n    // Callback when remote video is buffering                                      \n    onBuffer={onBuffer}\n    // Callback when video cannot be loaded              \n    onError={onError}               \n    style={styles.backgroundVideo}\n   /\u003e\n )\n}\n\n// Later on in your styles..\nvar styles = StyleSheet.create({\n  backgroundVideo: {\n    position: 'absolute',\n    top: 0,\n    left: 0,\n    bottom: 0,\n    right: 0,\n  },\n});\n```\n\n## Roadmap\nYou can follow our work on the library at [Roadmap](https://github.com/orgs/TheWidlarzGroup/projects/6).\n\n## Community support\nWe have an discord server where you can ask questions and get help. [Join the discord server](https://discord.gg/WXuM4Tgb9X)\n\n## Enterprise Support\n\u003cp\u003e\n  📱 \u003ci\u003ereact-native-video\u003c/i\u003e is provided \u003ci\u003eas it is\u003c/i\u003e. For enterprise support or other business inquiries, \u003ca href=\"https://www.thewidlarzgroup.com/?utm_source=rnv\u0026utm_medium=readme\u0026utm_campaign=enterprise\u0026utm_id=text#Contact\"\u003eplease contact us 🤝\u003c/a\u003e. We can help you with the integration, customization and maintenance. We are providing both free and commercial support for this project. let's build something awesome together! 🚀\n\u003c/p\u003e\n\u003ca href=\"https://www.thewidlarzgroup.com/?utm_source=rnv\u0026utm_medium=readme\u0026utm_campaign=enterprise\u0026utm_id=banner\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./docs/assets/baners/twg-dark.png\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./docs/assets/baners/twg-light.png\" /\u003e\n    \u003cimg alt=\"TheWidlarzGroup\" src=\"./docs/assets/baners/twg-light.png\" /\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheWidlarzGroup%2Freact-native-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheWidlarzGroup%2Freact-native-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheWidlarzGroup%2Freact-native-video/lists"}