{"id":16473445,"url":"https://github.com/kingrayhan/react-video-player","last_synced_at":"2025-03-23T11:32:50.664Z","repository":{"id":214161944,"uuid":"735852187","full_name":"kingRayhan/react-video-player","owner":"kingRayhan","description":"A customisable React component serving as a wrapper for the popular Video.js library. This component provides a sleek and responsive video player with theme options.","archived":false,"fork":false,"pushed_at":"2023-12-31T10:20:13.000Z","size":5806,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T20:07:46.768Z","etag":null,"topics":["react-video-player"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@graphland/react-video-player","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/kingRayhan.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":"2023-12-26T09:04:14.000Z","updated_at":"2024-12-05T04:28:51.000Z","dependencies_parsed_at":"2023-12-28T18:26:23.215Z","dependency_job_id":"527573bb-378b-4107-a126-7c2b1f5eafc0","html_url":"https://github.com/kingRayhan/react-video-player","commit_stats":null,"previous_names":["kingrayhan/react-video-player"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingRayhan%2Freact-video-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingRayhan%2Freact-video-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingRayhan%2Freact-video-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingRayhan%2Freact-video-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kingRayhan","download_url":"https://codeload.github.com/kingRayhan/react-video-player/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245097158,"owners_count":20560311,"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":["react-video-player"],"created_at":"2024-10-11T12:26:58.382Z","updated_at":"2025-03-23T11:32:50.269Z","avatar_url":"https://github.com/kingRayhan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### @graphland/react-video-player\n\nA customizable React component serving as a wrapper for the popular Video.js library. This component provides a sleek and responsive video player with theme options.\n\n[Storybook Demo](https://kingrayhan.github.io/react-video-player)\n\n[Api Doc (tsdocs)](https://tsdocs.dev/docs/@graphland/react-video-player)\n\n### Installation\n\n```bash\nnpm install @graphland/react-video-player\n```\n\n### Usage\n\n```tsx\nimport React from \"react\";\nimport { VideoPlayer, VideoPlayerProps } from \"@graphland/react-video-player\";\n\nconst App: React.FC = () =\u003e {\n  const videoSources = [\n    {\n      src: \"https://media.w3.org/2010/05/sintel/trailer_hd.mp4\",\n      type: \"video/mp4\",\n    },\n    // Add more video sources as needed\n  ];\n\n  const videoProps: VideoPlayerProps = {\n    theme: \"city\", // 'city', 'fantasy', 'forest', 'sea'\n    height: 720,\n    width: 1280,\n    autoPlay: false,\n    loop: false,\n    sources: videoSources,\n    controlBar: {\n      skipButtons: {\n        forward: 5,\n        backward: 5,\n      },\n    },\n    playbackRates: [0.5, 1, 1.5, 2],\n    disablePictureInPicture: false,\n    onReady: () =\u003e {\n      console.log(\"Video player is ready!\");\n    },\n  };\n\n  return \u003cVideoPlayer {...videoProps} /\u003e;\n};\n\nexport default App;\n```\n\n#### Props\n\n- `theme` (optional): Choose from 'city', 'fantasy', 'forest', 'sea' for different player themes.\n- `height` (optional): Height of the video player in pixels.\n- `width` (optional): Width of the video player in pixels.\n- `autoPlay` (optional): Automatically start playing the video when the component mounts.\n- `loop` (optional): Enable looping of the video.\n- `sources` (required): An array of video sources with `{ src: string, type: string }` format.\n- `poster` (optional): URL for the video poster image.\n- `controlBar` (optional): Additional configuration for the video control bar, including skip buttons.\n- `playbackRates` (optional): Array of playback rates available to the user.\n- `disablePictureInPicture` (optional): Disable the Picture-in-Picture mode.\n- `onReady` (optional): Callback function called when the video player is ready.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingrayhan%2Freact-video-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkingrayhan%2Freact-video-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingrayhan%2Freact-video-player/lists"}