Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunatiquecoder/rnmc-blog
https://github.com/lunatiquecoder/rnmc-blog
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lunatiquecoder/rnmc-blog
- Owner: LunatiqueCoder
- Created: 2024-02-07T17:51:50.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-16T17:37:21.000Z (10 months ago)
- Last Synced: 2024-12-10T11:48:53.276Z (13 days ago)
- Language: TypeScript
- Size: 314 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### React Native videoplayer with RN-media-console
In the world of React Native development, achieving smooth and engaging video playback is a game-changer.
Whether you're building a social network, educational platform, or entertainment app, a seamless video experience is essential.
The most popular and feature-rich library at the time of writing is `react-native-video`, boasting support for ads, subtitles, and various other functionalities.
However, it's important to note that `react-native-video` lacks a unified set of controls seamlessly compatible between Android and iOS. It relies on basic native controls,
leading to a fragmented user experience. https://react-native-video.github.io/react-native-video/component/props#controlsThis is where `react-native-media-console` steps in. Built on top of `react-native-video`, it serves as a comprehensive video player,
offering a seamless set of controls that harmoniously work across both Android and iOS platforms. With `react-native-media-console`,
you can elevate your video interactions, ensuring a consistent and user-friendly experience.1. Let's start by creating an Expo app using `npx create-expo-app my-app` in the terminal.
2. Run `cd my-app` to navigate to the project directory.
3. Run `yarn add react-native-video` or `npm install react-native-video`
4. Run `npx expo prebuild` so `ios` and `android` folders are updated accordingly with `react-native-video`'s native code.
5. Run `yarn ios` or `yarn android` to run the app.
6. Copy the following code in your `App.tsx` file:```tsx
import { StyleSheet, View } from 'react-native';
import Video from 'react-native-video';export default function App() {
return (
);
}const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'black',
},
backgroundVideo: {
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
},
});```
You will be presented the following native controls, which as you can see, they're inconsistent between platforms:
![image](https://github.com/LunatiqueCoder/rnmc-blog/assets/55203625/7b8e3e19-9a7a-4156-9742-11b575103dfc)