{"id":23860189,"url":"https://github.com/neemssoni/react-native-video-enhanced","last_synced_at":"2025-09-08T07:31:13.825Z","repository":{"id":57341243,"uuid":"245108742","full_name":"neemssoni/react-native-video-enhanced","owner":"neemssoni","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-06T12:58:09.000Z","size":511,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T01:19:52.354Z","etag":null,"topics":["react-native-android-controls","react-native-android-video","react-native-media-controls","react-native-video","react-native-video-controls","react-native-video-controls-android","react-native-video-player","react-native-video-with-controls"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/neemssoni.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":"2020-03-05T08:33:06.000Z","updated_at":"2023-11-01T10:29:32.000Z","dependencies_parsed_at":"2022-09-03T17:01:20.003Z","dependency_job_id":null,"html_url":"https://github.com/neemssoni/react-native-video-enhanced","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/neemssoni/react-native-video-enhanced","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neemssoni%2Freact-native-video-enhanced","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neemssoni%2Freact-native-video-enhanced/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neemssoni%2Freact-native-video-enhanced/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neemssoni%2Freact-native-video-enhanced/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neemssoni","download_url":"https://codeload.github.com/neemssoni/react-native-video-enhanced/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neemssoni%2Freact-native-video-enhanced/sbom","scorecard":{"id":678494,"data":{"date":"2025-08-11","repo":{"name":"github.com/neemssoni/react-native-video-enhanced","commit":"42d1cd56d22c1c22eb7ba9e211bc94e45026b9d6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T22:19:05.398Z","repository_id":57341243,"created_at":"2025-08-21T22:19:05.398Z","updated_at":"2025-08-21T22:19:05.398Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273619739,"owners_count":25138241,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["react-native-android-controls","react-native-android-video","react-native-media-controls","react-native-video","react-native-video-controls","react-native-video-controls-android","react-native-video-player","react-native-video-with-controls"],"created_at":"2025-01-03T04:24:23.459Z","updated_at":"2025-09-08T07:31:13.508Z","avatar_url":"https://github.com/neemssoni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-video-enhanced\nEnhanced controls for the React Native `\u003cVideo\u003e` component at [react-native-video](https://github.com/react-native-community/react-native-video). \n\n## Features\nThis package contains a enhanced set of GUI controls that work with the [react-native-video](https://github.com/react-native-community/react-native-video) `\u003cVideo\u003e` component. This includes a back button, volume bar, fullscreen toggle, play/pause toggle, seekbar, title, error handling and timer toggle that can switch between time remaining and current time when tapped.\n\nBy default the `\u003cVideoPlayer\u003e` accepts a navigator property from React's built-in `\u003cNavigator\u003e` which pops the current scene off the stack when tapped. Alternatively you can provide your own onBack prop to the component to override this functionality. You should also provide your own onEnd prop to the component so it knows what to do when a video ends playback.\n\nBy default, tapping the screen anywhere will show the player controls. After 10s the controls disappear. Double tapping will toggle fullscreen.\n\n## Installation\nRun `npm install --save react-native-video react-native-video-enhanced @react-native-community/slider`\n\nThen run `react-native link react-native-video`\n\nIf you're using RN \u003c 39 run `npm install --save react-native-video-enhanced@1.0.0`. Note this version includes `react-native-video` as a normal dependency instead of a peer-dependency.\n\n## Usage\nThe `\u003cVideoPlayer\u003e` component follows the API of the `\u003cVideo\u003e` component at [react-native-video](https://github.com/react-native-community/react-native-video). It also takes a number of additional props which are outlined in the [API](#api) section.\n\nFor basic operation the `\u003cVideoPlayer\u003e` component requires a video source and a navigator property. The default back button functionality in the component relies on using the built-in `\u003cNavigator\u003e` functionality in React Native and pops the current scene off the stack. This can be overridden if desired, see the [API](#api) for more details.\n\n```javascript\n// At the top where our imports are...\nimport VideoPlayer from 'react-native-video-enhanced';\n\n// in the component's render() function\n\u003cVideoPlayer\n    source={{ uri: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4' }}\n    navigator={ this.props.navigator }\n/\u003e\n```\n\nTo play a local file, use require syntax like so:\n\n```js\n\u003cVideoPlayer source={ require('path/to/file') } /\u003e\n```\n\n## API\nThe `\u003cVideoPlayer\u003e` component can take a number of inputs to customize it as needed. They are outlined below:\n\n### Props\nYou can pass any of the props that the `\u003cVideo /\u003e` component at [react-native-video](https://github.com/react-native-community/react-native-video) takes. Simply add them onto the `\u003cVideoPlayer /\u003e` and it will pass them through to the `\u003cVideo /\u003e` component.\n\nIn addition, the `\u003cVideoPlayer /\u003e` also takes these props:\n\n| Prop                         | Type          | Default | Description                                                                                                                                                         |\n| ---------------------------- | ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| toggleResizeModeOnFullscreen | Boolean       | true    | If true, clicking the fullscreen button will toggle the `\u003cVideo /\u003e` component between cover/contain, set to false if you want to customize fullscreen behaviour     |\n| controlTimeout               | Integer       | 15000   | Hide controls after X amount of time in milliseconds                                                                                                                |\n| showOnStart                  | Boolean       | true    | Show or hide the controls on first render                                                                                                                           |\n| videoStyle                   | StyleSheet    | null    | React Native StyleSheet object that is appended to the `\u003cVideo\u003e` component                                                                                          |\n| navigator                    | Navigator     | null    | When using the default React Native navigator and do not override the `onBack` function, you'll need to pass the navigator to the VideoPlayer for it to function    |\n| seekColor                    | String(#HEX)  | '#FFF'  | Fill/handle colour of the seekbar                                                                                                                                   |\n| style                        | StyleSheet    | null    | React Native StyleSheet object that is appended to the video's parent `\u003cView\u003e`                                                                                      |\n\n### Events\nThese are various events that you can hook into and fire functions on in the component:\n\n| Callback           | Description                                                                        |\n| ------------------ | ---------------------------------------------------------------------------------- |\n| onEnterFullscreen  | Fired when the video enters fullscreen after the fullscreen button is pressed      |\n| onExitFullscreen   | Fired when the video exits fullscreen after the fullscreen button is pressed       |\n| onError            | Fired when an error is encountered when loading the video                          |\n| onPause            | Fired when the video is paused after the play/pause button is pressed              |\n| onPlay             | Fired when the video begins playing after the play/pause button is pressed         |\n| onBack             | Function fired when back button is pressed, override if using custom navigation    |\n| onEnd              | Fired when the video is complete                                                   |\n\n### Controls\nThese are the various controls that you can turn on/off as needed. All of these props default to false, override them to disable any controls\n\n| Control            | Description                                 |\n| ------------------ | ------------------------------------------- |\n| disableFullscreen  | Hide the fullscreen button                  |\n| disablePlayPause   | Hide the play/pause toggle                  |\n| disableSeekbar     | Hide the seekbar                            |\n| disableVolume      | Hide the Volume control                     |\n| disableTimer       | Hide the timer                              |\n| disableBack        | Hide the back button                        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneemssoni%2Freact-native-video-enhanced","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneemssoni%2Freact-native-video-enhanced","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneemssoni%2Freact-native-video-enhanced/lists"}