{"id":15816841,"url":"https://github.com/lunatiquecoder/rnmc-blog","last_synced_at":"2025-04-01T03:43:27.677Z","repository":{"id":221414403,"uuid":"754259328","full_name":"LunatiqueCoder/rnmc-blog","owner":"LunatiqueCoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-16T17:37:21.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T18:54:45.459Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LunatiqueCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-07T17:51:50.000Z","updated_at":"2024-02-07T17:51:56.000Z","dependencies_parsed_at":"2024-02-07T21:25:11.862Z","dependency_job_id":"c4e64daa-ed76-42fa-adf1-700ccdb32c30","html_url":"https://github.com/LunatiqueCoder/rnmc-blog","commit_stats":null,"previous_names":["lunatiquecoder/rnmc-blog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunatiqueCoder%2Frnmc-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunatiqueCoder%2Frnmc-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunatiqueCoder%2Frnmc-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunatiqueCoder%2Frnmc-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LunatiqueCoder","download_url":"https://codeload.github.com/LunatiqueCoder/rnmc-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246580461,"owners_count":20800108,"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","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":[],"created_at":"2024-10-05T05:20:43.368Z","updated_at":"2025-04-01T03:43:27.658Z","avatar_url":"https://github.com/LunatiqueCoder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### React Native videoplayer with RN-media-console\r\n\r\nIn the world of React Native development, achieving smooth and engaging video playback is a game-changer. \r\nWhether you're building a social network, educational platform, or entertainment app, a seamless video experience is essential. \r\nThe most popular and feature-rich library at the time of writing is `react-native-video`, boasting support for ads, subtitles, and various other functionalities. \r\nHowever, 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, \r\nleading to a fragmented user experience. https://react-native-video.github.io/react-native-video/component/props#controls\r\n\r\nThis is where `react-native-media-console` steps in. Built on top of `react-native-video`, it serves as a comprehensive video player, \r\noffering a seamless set of controls that harmoniously work across both Android and iOS platforms. With `react-native-media-console`, \r\nyou can elevate your video interactions, ensuring a consistent and user-friendly experience. \r\n\r\n\r\n\r\n1. Let's start by creating an Expo app using `npx create-expo-app my-app` in the terminal.\r\n2. Run `cd my-app` to navigate to the project directory.\r\n3. Run `yarn add react-native-video` or `npm install react-native-video`\r\n4. Run `npx expo prebuild` so `ios` and `android` folders are updated accordingly with `react-native-video`'s native code.\r\n5. Run `yarn ios` or `yarn android` to run the app.\r\n6. Copy the following code in your `App.tsx` file:\r\n\r\n\r\n```tsx\r\nimport { StyleSheet, View } from 'react-native';\r\nimport Video from 'react-native-video';\r\n\r\nexport default function App() {\r\n  return (\r\n    \u003cView style={styles.container}\u003e\r\n      \u003cVideo\r\n        resizeMode=\"contain\"\r\n        controls // \u003c--- 👈 native controls\r\n        volume={0}\r\n        source={{ uri: 'https://vjs.zencdn.net/v/oceans.mp4' }}\r\n        style={styles.backgroundVideo}\r\n      /\u003e\r\n    \u003c/View\u003e\r\n  );\r\n}\r\n\r\nconst styles = StyleSheet.create({\r\n  container: {\r\n    flex: 1,\r\n    backgroundColor: 'black',\r\n  },\r\n  backgroundVideo: {\r\n    position: 'absolute',\r\n    top: 0,\r\n    left: 0,\r\n    bottom: 0,\r\n    right: 0,\r\n  },\r\n});\r\n\r\n```\r\n\u003cbr\u003e\r\n\u003cbr\u003e\r\n\r\nYou will be presented the following native controls, which as you can see, they're inconsistent between platforms:\r\n\r\n![image](https://github.com/LunatiqueCoder/rnmc-blog/assets/55203625/7b8e3e19-9a7a-4156-9742-11b575103dfc)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunatiquecoder%2Frnmc-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunatiquecoder%2Frnmc-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunatiquecoder%2Frnmc-blog/lists"}