{"id":16251760,"url":"https://github.com/jamsinclair/react-player-circle-controls","last_synced_at":"2025-10-01T06:30:52.177Z","repository":{"id":41733452,"uuid":"233346231","full_name":"jamsinclair/react-player-circle-controls","owner":"jamsinclair","description":"Circular UI controls for playing media","archived":false,"fork":false,"pushed_at":"2023-01-05T05:00:51.000Z","size":4093,"stargazers_count":3,"open_issues_count":35,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T16:10:43.863Z","etag":null,"topics":["circle-controls","media-player","react-player"],"latest_commit_sha":null,"homepage":"https://jamsinclair.github.io/react-player-circle-controls","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamsinclair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-12T06:02:33.000Z","updated_at":"2024-08-21T10:02:35.000Z","dependencies_parsed_at":"2023-02-03T11:30:30.427Z","dependency_job_id":null,"html_url":"https://github.com/jamsinclair/react-player-circle-controls","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsinclair%2Freact-player-circle-controls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsinclair%2Freact-player-circle-controls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsinclair%2Freact-player-circle-controls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsinclair%2Freact-player-circle-controls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamsinclair","download_url":"https://codeload.github.com/jamsinclair/react-player-circle-controls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234833322,"owners_count":18893888,"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":["circle-controls","media-player","react-player"],"created_at":"2024-10-10T15:11:17.362Z","updated_at":"2025-10-01T06:30:51.493Z","avatar_url":"https://github.com/jamsinclair.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Player Circle Controls\n\n\u003e Circular UI Controls for playing media\n\n[![NPM](https://img.shields.io/npm/v/react-player-circle-controls.svg)](https://www.npmjs.com/package/react-player-circle-controls)\n[![Minified and Gzipped](https://badgen.net/bundlephobia/minzip/react-player-circle-controls)](https://bundlephobia.com/result?p=react-player-circle-controls@latest)\n\n![Animation of Circle Controls](https://user-images.githubusercontent.com/5964236/72217574-41393200-3573-11ea-8d69-59647d660056.gif)\n\n## Install\n\n```bash\nnpm install --save react-player-circle-controls\n# OR\nyarn add react-player-circle-controls\n```\n\n## Usage\n\nYou'll need to use the component in conjunction with another media player library.\n\nIt was built with [react-player](https://github.com/CookPete/react-player) in mind but could work with others too.\n\n[See the StoryBook app for live example](https://jamsinclair.github.io/react-player-circle-controls/?path=/story/overview--with-react-player)\n\n```jsx\nimport React, {useRef, useState} from 'react';\nimport ReactPlayer from 'react-player';\nimport CircleControls from 'react-player-circle-controls';\nimport 'react-player-circle-controls/dist/styles.css';\n\nconst Example = () =\u003e {\n  const player = useRef(null);\n  const [playing, setPlaying] = useState(false);\n  const [playerState, setPlayerState] = useState({\n    played: 0,\n    loaded: 0\n  });\n\n  const onSeek = amount =\u003e {\n    if (player.current) {\n      player.current.seekTo(amount, 'fraction');\n    }\n  };\n\n  return (\n    \u003c\u003e\n      \u003cReactPlayer\n        ref={player}\n        url=\"https://soundcloud.com/dyad-duo-music/migrations\"\n        playing={playing}\n        height=\"0\"\n        width=\"0\"\n        onProgress={setPlayerState}\n        onEnded={() =\u003e setPlaying(false)}\n      /\u003e\n      \u003cCircleControls\n        played={playerState.played}\n        loaded={playerState.loaded}\n        playing={playing}\n        onSeek={onSeek}\n        onTogglePlaying={() =\u003e setPlaying(!playing)}\n      /\u003e\n    \u003c/\u003e\n  );\n};\n```\n\n## License\n\nMIT © [Jamie Sinclair](https://github.com/jamsinclair)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamsinclair%2Freact-player-circle-controls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamsinclair%2Freact-player-circle-controls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamsinclair%2Freact-player-circle-controls/lists"}