Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/screamz/react-native-true-sight
📱 A cross-platform (Android / iOS) video player with customizable controls for React Native.
https://github.com/screamz/react-native-true-sight
customizable react-native video video-player
Last synced: 15 days ago
JSON representation
📱 A cross-platform (Android / iOS) video player with customizable controls for React Native.
- Host: GitHub
- URL: https://github.com/screamz/react-native-true-sight
- Owner: ScreamZ
- License: mit
- Created: 2018-02-16T11:00:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T21:50:50.000Z (almost 2 years ago)
- Last Synced: 2024-04-26T03:36:44.424Z (7 months ago)
- Topics: customizable, react-native, video, video-player
- Language: TypeScript
- Homepage: https://github.com/ScreamZ/react-native-true-sight
- Size: 1.12 MB
- Stars: 86
- Watchers: 2
- Forks: 13
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
React Native True Sight
A cross-platform video player with customizable controls.
This library provide a fully customisable video player that work both on Android and iOS. It also come with common use case documentation of things that you would like to implements.
By default there are two controls slots that are displayed respectively on different part of the parent container and you can use default components provided by this library:
- **Middle**. Contain by default a grid display two buttons:
- One with play / pause alternating.
- Another that will restart the video.
- **Bottom**. Contain the video current time, a progress bar and the total duration.
- **Loader**. There is also a loader that will trigger while video is charging (network issues, bootstraping, ...).## Documentation
- [Installation chapter](./doc/install.md)
- [Render a FullScreen Video player](./doc/full-screen-player.md)
- [Implement your own controls bar](./doc/custom-controls-bar.md)# Quick documentation
This is simple as that.
VideoPlayer ship around any video component, but fits well with react-video. In v2 you've total control on the video component.
- **autoStart** - Whether or not the video should start when rendered (Default to true).
- **mainControl** - The component used to render the main control bar, you can use the default one provided by this lib or your own.
- **bottomControl** - The component used to render the bottom control bar, you can use the default one provided by this lib or your own.For advanced configuration, such as infinite loop, check the rest of the documentation and custom controls bar.
```jsx
import React, { Component } from "react";
import { View } from "react-native";
import Video from "react-native-video";
import { VideoPlayer, DefaultMainControl, DefaultBottomControlsBar } from "react-native-true-sight";export default class HomeScreen extends Component {
render() {
return (
}
bottomControl={args => }
>
{args => (
)}
);
}
}
```