{"id":23576006,"url":"https://github.com/theoplayer/samples-react-js","last_synced_at":"2026-03-11T14:38:08.198Z","repository":{"id":63618821,"uuid":"263321227","full_name":"THEOplayer/samples-react-js","owner":"THEOplayer","description":"A sample app integrating THEOplayer.js as a React.js component.","archived":false,"fork":false,"pushed_at":"2024-10-24T12:17:39.000Z","size":2043,"stargazers_count":5,"open_issues_count":4,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-05T19:46:13.541Z","etag":null,"topics":["react","reactjs","theoplayer","video-player"],"latest_commit_sha":null,"homepage":"","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/THEOplayer.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,"zenodo":null}},"created_at":"2020-05-12T11:47:16.000Z","updated_at":"2024-10-24T12:07:16.000Z","dependencies_parsed_at":"2024-05-28T12:24:36.480Z","dependency_job_id":"1663bcaa-781e-4017-b702-2b915c05a3c0","html_url":"https://github.com/THEOplayer/samples-react-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/THEOplayer/samples-react-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Fsamples-react-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Fsamples-react-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Fsamples-react-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Fsamples-react-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THEOplayer","download_url":"https://codeload.github.com/THEOplayer/samples-react-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THEOplayer%2Fsamples-react-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30384110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","reactjs","theoplayer","video-player"],"created_at":"2024-12-26T21:11:45.515Z","updated_at":"2026-03-11T14:38:08.176Z","avatar_url":"https://github.com/THEOplayer.png","language":"TypeScript","readme":"# THEOplayer React.js Sample\n\n## License\n\nThis projects falls under the license as defined in https://github.com/THEOplayer/license-and-disclaimer.\n\n## Overview\n\nThis project contains a basic implementation of a React App using THEOplayer as a React Component.\n\n## Project setup\n\n```\nnpm install\n```\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\n```\nnpm start\n```\n\nCompiles and runs the app in the development mode.\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\nThe page will reload if you make edits. You will also see any lint errors in the console.\n\n## Creating and using a component\n\n### `src/player/THEOplayerView.tsx`\n\nis an example implementation of a React Component that wraps the THEOplayer module. You can extend this wrapper to support whatever THEOplayer API that you want to use.\n\n### `src/App.tsx`\n\nuses the `Player` component exported by `THEOplayerView.tsx` and specifies a source for the player to play.\n\n## Going to Production\n\nThe THEOplayer library in this sample is installed from [the `theoplayer` package on npm](https://www.npmjs.com/package/theoplayer). It does not yet have a license configured, so initially it works on **localhost only**. You can specify a custom license in the `App.tsx` file.\n\n### Getting a license\n\nTo use this sample in your production app, you will need a valid license for the THEOplayer HTML5 SDK. You can use your existing license or get one on [THEOportal](http://portal.theoplayer.com).\n\n### Updating the project\n\nAfter acquiring a license, you can use it in the project.\n\nIn `src/App.tsx`, modify the `license` variable:\n\n```ts\nconst license = '\u003cinsert license\u003e';\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoplayer%2Fsamples-react-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoplayer%2Fsamples-react-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoplayer%2Fsamples-react-js/lists"}