{"id":24380854,"url":"https://github.com/yei-linux/usescreerecording-yl","last_synced_at":"2026-04-25T10:35:14.914Z","repository":{"id":111777840,"uuid":"292180931","full_name":"Yei-Linux/useScreeRecording-YL","owner":"Yei-Linux","description":"Hook for recording an specific element on screen.","archived":false,"fork":false,"pushed_at":"2020-09-02T14:59:06.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T08:35:29.696Z","etag":null,"topics":["react","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Yei-Linux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-02T04:43:41.000Z","updated_at":"2020-09-02T18:52:29.000Z","dependencies_parsed_at":"2023-04-20T00:43:57.536Z","dependency_job_id":null,"html_url":"https://github.com/Yei-Linux/useScreeRecording-YL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2FuseScreeRecording-YL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2FuseScreeRecording-YL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2FuseScreeRecording-YL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2FuseScreeRecording-YL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yei-Linux","download_url":"https://codeload.github.com/Yei-Linux/useScreeRecording-YL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243240988,"owners_count":20259502,"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","typescript"],"created_at":"2025-01-19T08:31:54.411Z","updated_at":"2025-12-25T10:50:48.713Z","avatar_url":"https://github.com/Yei-Linux.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n  \t\u003cimg src=\"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcThUwv9Nu44KYHhCd3U7I-YWS-glbCRGNOzyw\u0026usqp=CAU\" alt=\"Logo project\" width=\"80\" height=\"80\" /\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003cp\u003e\n    \u003cb\u003euseScreenRecording-yl\u003c/b\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n     \u003ci\u003eHook for recording an specific element on screen\u003c/i\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n**Content**\n\n* [Features](##features)\n* [Install](##install)\n* [Usage](##usage)\n* [Exemples](##exemples)\n* [Documentation](##documentation)\n* [API](##Api)\n* [Contributing](##contributing)\n* [Maintainers](##maintainers)\n\n## Features ✨\n* Easy to use.\n* Continuously Maintained.\n\n## Install 🐙\nYou can install useRecording-yl by entering this command.\n\u003ca href=\"https://www.npmjs.com/package/use-screen-recording-yl\"\u003eClick here for npm repository\u003c/a\u003e\n\n```\nnpm i use-screen-recording-yl\n```\n\n## Usage 💡\nThis package is for recording element on screen and it will generate blob video and url video of recording.\n\n## Exemples 🖍\n```\n  const refContainer: any = useRef();\n  const {\n    urlVideoState,\n    blobVideoState,\n    ScreenRecording,\n    handleStartRecording,\n    handleStopRecording,\n  } = useScreenRecording();\n  ...\n  const handleClickStart = () =\u003e {\n    setVisible(false);\n    handleStartRecording(\n      refContainer.current.getBoundingClientRect().x,\n      refContainer.current.getBoundingClientRect().y,\n      refContainer.current.getBoundingClientRect().width,\n      refContainer.current.getBoundingClientRect().height,\n      0, //By Default is 0\n      0, //By Default is 0\n      500,//By Default is 1500\n      500 //By Default is 500\n    );\n  };\n\n  const handleClickStop = () =\u003e {\n    handleStopRecording();\n  };\n  ...\n   return (\n    \u003cdiv\n      style={{\n        width: '100%',\n        height: '100%',\n        display: 'flex',\n        flexDirection: 'column',\n        justifyContent: 'center',\n        alignItems: 'center',\n      }}\n    \u003e\n      \u003cScreenRecording /\u003e\n      \u003ch2\u003eImage for testing\u003c/h2\u003e\n      \u003cimg\n        ref={refContainer}\n        src=\"https://www.chess.com/bundles/web/images/offline-play/standardboard.6a504885.png\"\n        alt=\"\"\n        width=\"500\"\n        height=\"500\"\n      /\u003e\n      \u003cbutton onClick={handleClickStart}\u003eStart Recording\u003c/button\u003e\n      \u003cbutton onClick={handleClickStop}\u003eStop Recording\u003c/button\u003e\n      \u003cbutton onClick={handleClickShow}\u003eShow Video\u003c/button\u003e\n      ...\n    \u003c/div\u003e\n  );\n```\n\n## Contributing 🍰\nPlease make sure to read the [Contributing Guide]() before making a pull request.\n\nThank you to all the people who already contributed to this project!\n\n## Maintainers 👷\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Yei-Linux\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/38733057?s=60\u0026v=4\" width=\"100px;\" alt=\"Yei Linux\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYei Linux\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## License ⚖️\nEnter what kind of license you're using.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyei-linux%2Fusescreerecording-yl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyei-linux%2Fusescreerecording-yl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyei-linux%2Fusescreerecording-yl/lists"}