Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghondar/react-native-vlc-player
VLC Player for react-native
https://github.com/ghondar/react-native-vlc-player
android react-native vlc vlc-player
Last synced: 19 days ago
JSON representation
VLC Player for react-native
- Host: GitHub
- URL: https://github.com/ghondar/react-native-vlc-player
- Owner: ghondar
- Created: 2016-03-25T07:46:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-07T20:07:40.000Z (about 1 year ago)
- Last Synced: 2024-04-14T12:10:26.083Z (8 months ago)
- Topics: android, react-native, vlc, vlc-player
- Language: Java
- Homepage:
- Size: 98.6 MB
- Stars: 152
- Watchers: 3
- Forks: 39
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-react-native - react-native-vlc-player ★80 - VLC Player for react-native (Components / Media)
- awesome-react-native-native-modules - react-native-vlc-player ★60
- awesome-react-native - react-native-vlc-player ★80 - VLC Player for react-native (Components / Media)
- awesome-react-native - react-native-vlc-player ★80 - VLC Player for react-native (Components / Media)
- awesome-react-native-ui - react-native-vlc-player ★34 - VLC Player for react-native (Components / Media)
- awesome-react-native - react-native-vlc-player ★80 - VLC Player for react-native (Components / Media)
README
# react-native-vlc-player
## Getting started
`$ npm install react-native-vlc-player --save`
## Dependencies
`$ npm install react-native-vector-icons --save`
### Manual installation
Copy Ionicons.ttf from `node_modules/react-native-vector-icons/Fonts` to `android/app/src/main/assets/fonts`
#### Android
1. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```Diff
...
allprojects {
...
dependencies {
...
+ maven {
+ url("https://jitpack.io")
+ }
}
}
```## Usage
```javascript
import React, {Component} from 'react';
import {
StyleSheet,
View
} from 'react-native';
// Import library
import VlcPlayer from 'react-native-vlc-player';export default class App extends Component {
vlcplayer = React.createRef();componentDidMount() {
console.log(this.vlcplayer)
}render() {
return (
);
}
}const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'grey',
},
});
```## Props
```javascript```
## Static Methods
`seek(seconds)`
```
this.refs['vlcplayer'].seek(0.333);
````snapshot(path)`
```
this.refs['vlcplayer'].snapshot(path);
```