{"id":16528534,"url":"https://github.com/tobilen/clappr-responsive-container-plugin","last_synced_at":"2025-10-28T10:31:18.300Z","repository":{"id":57199404,"uuid":"72941473","full_name":"tobilen/clappr-responsive-container-plugin","owner":"tobilen","description":"A plugin for clappr which will resize the container to never be larger than current viewport width","archived":false,"fork":false,"pushed_at":"2018-02-09T12:09:04.000Z","size":25,"stargazers_count":2,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-05T07:32:53.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tobilen.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}},"created_at":"2016-11-05T17:16:35.000Z","updated_at":"2019-04-25T09:30:54.000Z","dependencies_parsed_at":"2022-08-30T16:11:28.860Z","dependency_job_id":null,"html_url":"https://github.com/tobilen/clappr-responsive-container-plugin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fclappr-responsive-container-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fclappr-responsive-container-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fclappr-responsive-container-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fclappr-responsive-container-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobilen","download_url":"https://codeload.github.com/tobilen/clappr-responsive-container-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859796,"owners_count":16556033,"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-11T17:40:44.381Z","updated_at":"2025-10-28T10:31:12.998Z","avatar_url":"https://github.com/tobilen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" Clappr Responsive Container Plugin\nA plugin for clappr which will resize the container to never be larger than the current viewport width.\n\n# Usage\nAdd both Clappr and this plugin scripts to your HTML:\n\n```html\n\u003chead\u003e\n  \u003cscript type=\"text/javascript\" src=\"http://cdn.clappr.io/latest/clappr.min.js\"\u003e\u003c/script\u003e\n  \u003cscript type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/clappr.thumbnails-plugin/latest/clappr-responsive-container-plugin.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n```\n\nYou can also find the project on npm: https://www.npmjs.com/package/clappr-responsive-container-plugin\n\nThen just add `ResponsiveContainer` into the list of plugins of your player instance as shown below.\n\n```javascript\nvar player = new Clappr.Player({\n  source: \"http://your.video/here.mp4\",\n  plugins: {\n    container: [ResponsiveContainer]\n  }\n});\n```\n\n\n# Demo\nTo run the demo start a web server with the root directory being the root of this repo, and then browse to the \"index.html\" file in the \"demo\" folder.\n\n# Development\nInstall dependencies:\n\n`npm install`\n\nBuild:\n\n`npm run build`\n\nMinified version:\n\n`npm run release`\n\n# Thanks\nThis repository was based off of tjenkinson's thumbnails plugin: https://github.com/tjenkinson/clappr-thumbnails-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilen%2Fclappr-responsive-container-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobilen%2Fclappr-responsive-container-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilen%2Fclappr-responsive-container-plugin/lists"}