{"id":25621853,"url":"https://github.com/grovertb/react-native-giraffeplayer2","last_synced_at":"2026-03-15T05:06:29.794Z","repository":{"id":38935703,"uuid":"216605761","full_name":"grovertb/react-native-giraffeplayer2","owner":"grovertb","description":"Video Player based on GiraffePlayer for react-native","archived":false,"fork":false,"pushed_at":"2023-01-06T02:13:39.000Z","size":15584,"stargazers_count":4,"open_issues_count":14,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T19:02:28.016Z","etag":null,"topics":["android","giraffe-player","giraffe-player2","giraffeplayer","player","react-native","video","video-player"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grovertb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-21T15:45:18.000Z","updated_at":"2020-09-16T20:42:55.000Z","dependencies_parsed_at":"2023-02-05T02:45:30.628Z","dependency_job_id":null,"html_url":"https://github.com/grovertb/react-native-giraffeplayer2","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/grovertb%2Freact-native-giraffeplayer2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grovertb%2Freact-native-giraffeplayer2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grovertb%2Freact-native-giraffeplayer2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grovertb%2Freact-native-giraffeplayer2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grovertb","download_url":"https://codeload.github.com/grovertb/react-native-giraffeplayer2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824641,"owners_count":21167343,"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":["android","giraffe-player","giraffe-player2","giraffeplayer","player","react-native","video","video-player"],"created_at":"2025-02-22T09:49:41.664Z","updated_at":"2026-03-15T05:06:24.755Z","avatar_url":"https://github.com/grovertb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-giraffeplayer2\n\n\u003e Video Player based on [GiraffePlayer2](https://github.com/tcking/GiraffePlayer2) for react-native\n\n*Only Android support now.*\n\n## Getting started\n\n`$ npm install react-native-giraffeplayer2 --save`\n\n\n### Screen\n\n![](https://raw.githubusercontent.com/grovertb/react-native-giraffeplayer2/master/screens/demo.gif)\n\n## Usage\n```javascript\nimport React from 'react';\nimport {StyleSheet, View, Text, TouchableOpacity} from 'react-native';\n\nimport GiraffePlayer2 from 'react-native-giraffeplayer2';\n\nexport default function App() {\n  React.useEffect(() =\u003e {\n    GiraffePlayer2.setShowTopBar(true);\n    GiraffePlayer2.setFullScreenOnly(true);\n  }, []);\n\n  const _handleClickPlay = () =\u003e {\n    GiraffePlayer2.setTitle('Demo');\n    GiraffePlayer2.play('http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4');\n  };\n\n  return (\n    \u003cView style={styles.body}\u003e\n      \u003cText style={styles.title}\u003eGiraffePlayer2\u003c/Text\u003e\n      \u003cTouchableOpacity style={styles.button} onPress={_handleClickPlay}\u003e\n        \u003cText\u003ePlay\u003c/Text\u003e\n      \u003c/TouchableOpacity\u003e\n    \u003c/View\u003e\n  );\n}\n\nconst styles = StyleSheet.create({\n  button: {\n    backgroundColor: '#c4c4c4',\n    borderRadius: 4,\n    paddingVertical: 12,\n    paddingHorizontal: 32,\n  },\n  body: {\n    justifyContent: 'center',\n    alignItems: 'center',\n    flex: 1,\n  },\n  title: {\n    fontSize: 20,\n    marginBottom: 12,\n  },\n});\n```\n\n## API\n\n### Config\n* `setTitle(title)` - set title =\u003e title: String\n* `setFullScreenOnly(val)` - set fullscreen =\u003e val: Boolean\n* `setAspectRatio(val)` - set aspect ratio =\u003e AspectRatio: String\n* `setShowTopBar(SCALE_TYPE)` - set show top bar type =\u003e val: Boolean\n\n### Initialize\n* `play(url)` - play video =\u003e url: String\n\n#### LICENSE\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrovertb%2Freact-native-giraffeplayer2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrovertb%2Freact-native-giraffeplayer2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrovertb%2Freact-native-giraffeplayer2/lists"}