{"id":25407880,"url":"https://github.com/gaetanozappi/react-native-intent-exoplayer","last_synced_at":"2025-10-31T03:30:38.008Z","repository":{"id":57337744,"uuid":"156160324","full_name":"gaetanozappi/react-native-intent-exoplayer","owner":"gaetanozappi","description":"It allows you to start a player exoplayer for streaming a video via intent.","archived":false,"fork":false,"pushed_at":"2019-01-03T16:56:02.000Z","size":40175,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T11:10:53.805Z","etag":null,"topics":["exoplayer","exoplayer-subtitles","exoplayer2","intent","player","react-native","streaming","video"],"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-11-05T04:24:03.000Z","updated_at":"2024-02-22T03:33:32.000Z","dependencies_parsed_at":"2022-09-14T19:23:19.975Z","dependency_job_id":null,"html_url":"https://github.com/gaetanozappi/react-native-intent-exoplayer","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-exoplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanozappi%2Freact-native-intent-exoplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanozappi%2Freact-native-intent-exoplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanozappi%2Freact-native-intent-exoplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaetanozappi","download_url":"https://codeload.github.com/gaetanozappi/react-native-intent-exoplayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239077450,"owners_count":19577666,"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":["exoplayer","exoplayer-subtitles","exoplayer2","intent","player","react-native","streaming","video"],"created_at":"2025-02-16T07:19:08.218Z","updated_at":"2025-10-31T03:30:30.931Z","avatar_url":"https://github.com/gaetanozappi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native: react-native-intent-exoplayer\n\n[![GitHub package version](https://img.shields.io/github/package-json/v/gaetanozappi/react-native-intent-exoplayer.svg?style=flat\u0026colorB=2b7cff)](https://github.com/gaetanozappi/react-native-intent-exoplayer)\n[![github home](http://img.shields.io/npm/v/react-native-intent-exoplayer.svg?style=flat)](https://www.npmjs.com/package/react-native-intent-exoplayer)\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--exoplayer-blue.svg?style=flat)](https://github.com/gaetanozappi/react-native-intent-exoplayer)\n[![npm](https://img.shields.io/npm/dm/react-native-exoplayer-player.svg?style=flat\u0026colorB=007ec6)](https://www.npmjs.com/package/react-native-intent-exoplayer)\n\n[![github issues](https://img.shields.io/github/issues/gaetanozappi/react-native-intent-exoplayer.svg?style=flat)](https://github.com/gaetanozappi/react-native-intent-exoplayer/issues)\n[![github closed issues](https://img.shields.io/github/issues-closed/gaetanozappi/react-native-intent-exoplayer.svg?style=flat\u0026colorB=44cc11)](https://github.com/gaetanozappi/react-native-intent-exoplayer/issues?q=is%3Aissue+is%3Aclosed)\n[![Issue Stats](https://img.shields.io/issuestats/i/github/gaetanozappi/react-native-intent-exoplayer.svg?style=flat\u0026colorB=44cc11)](http://github.com/gaetanozappi/react-native-intent-exoplayer/issues)\n[![github license](https://img.shields.io/github/license/gaetanozappi/react-native-intent-exoplayer.svg)]()\n\n\u003cimg src=\"https://github.com/gaetanozappi/react-native-intent-exoplayer/raw/master/screenshot/react-native-intent-exoplayer.gif\" /\u003e\n\n-   [Usage](#-usage)\n-   [License](#-license)\n\n## 📖 Getting started\n\n`$ npm install react-native-intent-exoplayer --save`\n\n`$ react-native link react-native-intent-exoplayer`\n\n#### Android\n\nAdd `react-native-intent-exoplayer` to your `./android/settings.gradle` file as follows:\n\n```diff\n...\ninclude ':app'\n+ include ':react-native-intent-exoplayer'\n+ project(':react-native-intent-exoplayer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-intent-exoplayer/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-exoplayer')\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.ui.exoplayer.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-exoplayer';\n\ntype Props = {};\nexport default class App extends Component\u003cProps\u003e {\n\n  constructor(props) {\n    super(props);\n    this.state = {\n      title: 'Big Buck Bunny',\n      url: 'https://www.w3schools.com/html/mov_bbb.mp4',\n      sub: 'https://pastebin.com/raw/A0fDHxgK',\n      subShow: true\n    };\n  }\n\n  componentDidMount() {\n    Player.play(this.state.title,this.state.url,this.state.sub,this.state.subShow)\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-exoplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaetanozappi%2Freact-native-intent-exoplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaetanozappi%2Freact-native-intent-exoplayer/lists"}