{"id":29054146,"url":"https://github.com/lumi-software/react-native-vlc","last_synced_at":"2025-10-18T11:10:28.696Z","repository":{"id":57130658,"uuid":"269303653","full_name":"lumi-software/react-native-vlc","owner":"lumi-software","description":"Play video with vlc","archived":false,"fork":false,"pushed_at":"2021-12-11T07:48:20.000Z","size":442,"stargazers_count":5,"open_issues_count":5,"forks_count":10,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-16T03:29:03.237Z","etag":null,"topics":["react-native","vlc","vlc-player"],"latest_commit_sha":null,"homepage":"","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/lumi-software.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-06-04T08:32:52.000Z","updated_at":"2022-09-30T01:48:53.000Z","dependencies_parsed_at":"2022-09-01T00:12:05.512Z","dependency_job_id":null,"html_url":"https://github.com/lumi-software/react-native-vlc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lumi-software/react-native-vlc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-vlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-vlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-vlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-vlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lumi-software","download_url":"https://codeload.github.com/lumi-software/react-native-vlc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-vlc/sbom","scorecard":{"id":605094,"data":{"date":"2025-08-11","repo":{"name":"github.com/lumi-software/react-native-vlc","commit":"ff205174006238137c51071ebbaa3793cd8a3b13"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Code-Review","score":0,"reason":"Found 0/23 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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/lumi-software/react-native-vlc/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/lumi-software/react-native-vlc/npm-publish.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"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":"Binary-Artifacts","score":0,"reason":"binaries present in source code","details":["Warn: binary detected: android/build/.transforms/6163480664604f4be7c52102182ac11d/full/classes.dex:1","Warn: binary detected: android/build/intermediates/compile_library_classes/debug/classes.jar:1","Warn: binary detected: android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar:1","Warn: binary detected: android/build/intermediates/full_jar/debug/createFullJarDebug/full.jar:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/BuildConfig.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/ReactVlcPlayerPackage.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView$1.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView$2.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView$3.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView$4.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView$5.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerViewManager.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/VideoEventEmitter$VideoEvents.class:1","Warn: binary detected: android/build/intermediates/javac/debug/classes/com/yuanzhou/vlc/vlcplayer/VideoEventEmitter.class:1","Warn: binary detected: android/build/intermediates/library_java_res/debug/res.jar:1","Warn: binary detected: android/build/intermediates/runtime_library_classes/debug/classes.jar:1"],"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":"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":"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":"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":"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-21T01:24:18.246Z","repository_id":57130658,"created_at":"2025-08-21T01:24:18.246Z","updated_at":"2025-08-21T01:24:18.246Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279290464,"owners_count":26141135,"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-10-17T02:00:07.504Z","response_time":56,"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","vlc","vlc-player"],"created_at":"2025-06-27T02:02:17.127Z","updated_at":"2025-10-18T11:10:28.657Z","avatar_url":"https://github.com/lumi-software.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nghinv/react-native-vlc\n\nA `VLCPlayer` component for react-native\nproject clone from `react-native-yz-vlcplayer`\n\n# Installation\n\n## Installing the package\n\n* Use yarn\n\n```sh\nyarn add @nghinv/react-native-vlc\n```\n\n* Use npm\n\n```sh\nnpm install @nghinv/react-native-vlc\n```\n\n### Dependencies\n\n- react-native-vector-icons\n\n- react-native-slider\n\n\n## android\n\n* **With autolinking (react-native 0.60+)**\n\n* **Pre 0.60**\n\n\u003e Run `react-native link @nghinv/react-native-vlc`\n\n\n## ios\n\n* **With autolinking (react-native 0.60+)**\n\n\u003e Run `cd ios \u0026\u0026 pod install`\n\n* **Pre 0.60**\n\nUse framework\n\n1. cd to ios\n\n2. run `pod init`\n\n3. add `pod 'MobileVLCKit', '3.3.10'` to pod file\n\n4. run `pod install`\n\n\n* **Enable Bitcode**\n\nIn root project select Build Settings ---\u003e find Bitcode and select Enable Bitcode\n\n![](./images/bitcode.png)\n\n* **Remove DSYM**\n\nIn root project select Build Settings --\u003e Build Options --\u003e Debug Information is set to DWARF.\n\n![](./images/dsym.png)\n\n# Example\n\n```javascript\n  (1) import { VLCPlayer, VlCPlayerView } from '@nghinv/react-native-vlc';\n\n  (2) \n    \u003cVLCPlayer\n      ref={ref =\u003e (this.vlcPlayer = ref)}\n      style={[styles.video]}\n      videoAspectRatio=\"16:9\"\n      paused={this.state.paused}\n      source={{ uri: this.props.uri}}\n      onProgress={this.onProgress.bind(this)}\n      onEnd={this.onEnded.bind(this)}\n      onBuffering={this.onBuffering.bind(this)}\n      onError={this._onError}\n      onStopped={this.onStopped.bind(this)}   \n      onPlaying={this.onPlaying.bind(this)}\n      onPaused={this.onPaused.bind(this)}      \n    /\u003e\n  (3) or use\n    \u003cVlCPlayerView\n      autoplay={false}\n      url={this.state.url}\n      Orientation={Orientation}      \n      BackHandle={BackHandle}\n      showTitle={true}\n      title=\"\"\n      showBack={true}\n      onLeftPress={()=\u003e{}}\n      startFullScreen={() =\u003e {      \n        this.setState({\n        isFull: true,\n        });\n      }}\n      closeFullScreen={() =\u003e {\n        this.setState({\n        isFull: false,\n        });\n      }}\n    /\u003e\n```\n\n# Property\n\n## VLCPlayer component\n\n| Property | Type | Default | Description |\n|----------|:----:|:-------:|-------------|\n| rate | `number` |         |             |\n| seek | `number` |         |             |\n| resume | `boolean` |      |             |\n| position | `number` |      |             |\n| snapshotPath | `string` |      |             |\n| paused | `boolean` |      |             |\n| autoAspectRatio | `boolean` |      |     |\n| videoAspectRatio | `string` | `16:9`     |     |\n| volume | `number` |      | from 0 to 200    |\n| volumeUp | `number` |     |             |\n| volumeDown | `number` |     |             |\n| repeat | `boolean` |     |             |\n| muted | `boolean` |     |             |\n| hwDecoderForced | `number` |  `0, 1` | (Only android) need use with hwDecoderForced |\n| hwDecoderEnabled | `number` |  `0, 1`   | Only android) need use with hwDecoderEnabled |\n| style | `ViewStyle` |     |             |\n| onVideoLoadStart | `func` |     |             |\n| onVideoStateChange | `func` |     |             |\n| onVideoProgress | `func` |     |             |\n| onSnapshot | `func` |     |             |\n| onIsPlaying | `func` |     |             |\n| onOpen | `func` |     |             |\n| onLoadStart | `func` |     |             |\n| source | `oject, number` |     |             |\n| play | `func` |     |             |\n| snapshot | `func` |     |             |\n| onError | `func` |     |             |\n| onProgress | `func` |     | { currentTime:1000,duration:1000 } unit：ms |\n| onEnded | `func` |     |             |\n| onStopped | `func` |     |             |\n| onPlaying | `func` |     |             |\n| onPaused | `func` |     |             |\n| scaleX | `number` |     |             |\n| scaleY | `number` |     |             |\n| translateX | `number` |     |             |\n| translateY | `number` |     |             |\n| rotation | `number` |     |             |\n\n\n## VlCPlayerView component\n\n| Property | Type | Default | Description |\n|----------|:----:|:-------:|-------------|\n| style | `ViewStyle` |         |         |\n| videoStyle | `ViewStyle` |         |         |\n| initPaused | `boolean` | false |  |\n| source | `oject, number` |  | `{ uri: 'http:...' }` |\n| seek | `number` | 0 |  |\n| playInBackground | `boolean` | false |  |\n| isAd | `boolean` | false |  |\n| showAd | `boolean` | false |  |\n| adUrl | `string` |  |  |\n| autoplay | `boolean` | true |  |\n| fullVideoAspectRatio | `string` |  |  |\n| videoAspectRatio | `string` |  |  |\n| errorTitle | `string` | `Video playback error, please reload` |  |\n| height | `number` | 250 |  |\n| url | `string` |  | url of video |\n| showBack | `boolean` | false |  |\n| showTitle | `boolean` | false |  |\n| title | `string` |  |  |\n| showGoLive | `boolean` | false |  |\n| showLeftButton | `boolean` | true |  |\n| showMiddleButton | `boolean` | true |  |\n| showRightButton | `boolean` | true |  |\n| animationLayout | `boolean` | true |  |\n| titleGolive | `string` | `Go live` | show when showGoLive true |\n| onEnd | `func` |  |  |\n| onAdEnd | `func` |  |  |\n| startFullScreen | `func` |  |  |\n| closeFullScreen | `func` |  |  |\n| onLeftPress | `func` |  |  |\n| onGoLivePress | `func` |  |  |\n| onReplayPress | `func` |  |  |\n| onVLCProgress | `func` |  |  |\n| onVLCEnded | `func` |  |  |\n| onVLCError | `func` |  |  |\n| onVLCBuffering | `func` |  |  |\n| BackHandle |  | `undefined` | BackAndroid |\n| Orientation |  | `undefined` | `react-native-orientation-locker` |\n\n# Supported formats\n\nSupported formats mp4, m3u8, flv,mov, rtsp, rtmp, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumi-software%2Freact-native-vlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumi-software%2Freact-native-vlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumi-software%2Freact-native-vlc/lists"}