{"id":25407890,"url":"https://github.com/gaetanozappi/react-native-intent-player","last_synced_at":"2025-09-04T18:49:43.097Z","repository":{"id":57337758,"uuid":"128675343","full_name":"gaetanozappi/react-native-intent-player","owner":"gaetanozappi","description":"It allows you to start a player for streaming a video via intent.","archived":false,"fork":false,"pushed_at":"2020-08-17T20:49:04.000Z","size":805,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T06:39:09.062Z","etag":null,"topics":["intent","player","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gaetanozappi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-08T19:36:19.000Z","updated_at":"2023-09-08T17:39:01.000Z","dependencies_parsed_at":"2022-09-15T15:00:28.284Z","dependency_job_id":null,"html_url":"https://github.com/gaetanozappi/react-native-intent-player","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanozappi%2Freact-native-intent-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanozappi%2Freact-native-intent-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanozappi%2Freact-native-intent-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanozappi%2Freact-native-intent-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaetanozappi","download_url":"https://codeload.github.com/gaetanozappi/react-native-intent-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239098758,"owners_count":19581301,"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":["intent","player","react-native"],"created_at":"2025-02-16T07:19:09.492Z","updated_at":"2025-02-16T07:19:10.282Z","avatar_url":"https://github.com/gaetanozappi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native: react-native-intent-player\n\n[![GitHub package version](https://img.shields.io/github/package-json/v/gaetanozappi/react-native-intent-player.svg?style=flat\u0026colorB=2b7cff)](https://github.com/gaetanozappi/react-native-intent-player)\n[![github home](http://img.shields.io/npm/v/react-native-intent-player.svg?style=flat)](https://www.npmjs.com/package/react-native-intent-player)\n![platforms](https://img.shields.io/badge/platforms-Android-brightgreen.svg?style=flat\u0026colorB=191A17)\n[![github home](https://img.shields.io/badge/gaetanozappi-react--native--intent--player-blue.svg?style=flat)](https://github.com/gaetanozappi/react-native-intent-player)\n[![npm](https://img.shields.io/npm/dm/react-native-intent-player.svg?style=flat\u0026colorB=007ec6)](https://www.npmjs.com/package/react-native-intent-player)\n\n[![github issues](https://img.shields.io/github/issues/gaetanozappi/react-native-intent-player.svg?style=flat)](https://github.com/gaetanozappi/react-native-intent-player/issues)\n[![github closed issues](https://img.shields.io/github/issues-closed/gaetanozappi/react-native-intent-player.svg?style=flat\u0026colorB=44cc11)](https://github.com/gaetanozappi/react-native-intent-player/issues?q=is%3Aissue+is%3Aclosed)\n[![Issue Stats](https://img.shields.io/issuestats/i/github/gaetanozappi/react-native-intent-player.svg?style=flat\u0026colorB=44cc11)](http://github.com/gaetanozappi/react-native-intent-player/issues)\n[![github license](https://img.shields.io/github/license/gaetanozappi/react-native-intent-player.svg)]()\n\n![PNG](screenshot/react-native-intent-player.jpeg)\n\n-   [Usage](#-usage)\n-   [License](#-license)\n\n## 📖 Getting started\n\n`$ npm install react-native-intent-player --save`\n\n`$ react-native link react-native-intent-player`\n\n#### Android\n\nAdd `react-native-intent-player` to your `./android/settings.gradle` file as follows:\n\n```diff\n...\ninclude ':app'\n+ include ':react-native-intent-player'\n+ project(':react-native-intent-player').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-intent-player/android/app')\n```\n\nInclude it as dependency in `./android/app/build.gradle` file:\n\n```diff\ndependencies {\n    ...\n    compile \"com.facebook.react:react-native:+\"  // From node_modules\n+   compile project(':react-native-intent-player')\n}\n```\n\nFinally, you need to add the package within the `ReactInstanceManager` of your\nMainActivity (`./android/app/src/main/java/your/bundle/MainActivity.java`):\n\n```java\nimport com.zappi.intent.player.PlayerPackage;  // \u003c---- import this one\n...\n@Override\nprotected List\u003cReactPackage\u003e getPackages() {\n    return Arrays.\u003cReactPackage\u003easList(\n        new MainReactPackage(),\n        new PlayerPackage()  // \u003c---- add this line\n    );\n}\n```\n\nAfter that, you will need to recompile\nyour project with `react-native run-android`.\n\n## 💻 Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport Player from 'react-native-intent-player';\n\ntype Props = {};\nexport default class App extends Component\u003cProps\u003e {\n\n  constructor(props) {\n    super(props);\n    this.state = {\n      url: 'https://www.w3schools.com/html/mov_bbb.mp4',\n    };\n  }\n\n  componentDidMount() {\n    Player.play(this.state.url)\n      .then(a =\u003e {\n        console.log(a);\n      })\n      .catch(e =\u003e console.log(e));\n  }\n\n  render() {\n    return null;\n  }\n}\n```\n\n## 📜 License\nThis library is provided under the Apache License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaetanozappi%2Freact-native-intent-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaetanozappi%2Freact-native-intent-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaetanozappi%2Freact-native-intent-player/lists"}