{"id":19312518,"url":"https://github.com/muxinc/media-group","last_synced_at":"2025-07-31T09:33:08.243Z","repository":{"id":49784439,"uuid":"518052277","full_name":"muxinc/media-group","owner":"muxinc","description":"👯‍♀️ mediagroup / MediaController which can be used to sync and control multiple audio / video elements","archived":false,"fork":false,"pushed_at":"2024-08-05T17:12:00.000Z","size":214,"stargazers_count":14,"open_issues_count":3,"forks_count":4,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-07-24T10:31:19.236Z","etag":null,"topics":["audio","htmlmediaelement","media","media-chrome","mediagroup","sync","video"],"latest_commit_sha":null,"homepage":"https://media-group-mux.vercel.app/examples/","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/muxinc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-26T12:28:42.000Z","updated_at":"2025-06-16T04:52:44.000Z","dependencies_parsed_at":"2024-08-05T20:06:09.442Z","dependency_job_id":null,"html_url":"https://github.com/muxinc/media-group","commit_stats":{"total_commits":57,"total_committers":4,"mean_commits":14.25,"dds":0.6491228070175439,"last_synced_commit":"571b2ec15bd5055bf8a093e879d5cc36725f33d2"},"previous_names":["luwes/media-group"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/muxinc/media-group","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muxinc%2Fmedia-group","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muxinc%2Fmedia-group/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muxinc%2Fmedia-group/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muxinc%2Fmedia-group/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muxinc","download_url":"https://codeload.github.com/muxinc/media-group/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muxinc%2Fmedia-group/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268017314,"owners_count":24181666,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["audio","htmlmediaelement","media","media-chrome","mediagroup","sync","video"],"created_at":"2024-11-10T00:35:08.125Z","updated_at":"2025-07-31T09:33:08.204Z","avatar_url":"https://github.com/muxinc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# media-group\n\nResurrection of the [mediagroup attribute](https://html.spec.whatwg.org/commit-snapshots/a4c46fc65e8ba138baeadf0bd1c2055b7bb43863/#attr-media-mediagroup) and [MediaController API](https://html.spec.whatwg.org/commit-snapshots/a4c46fc65e8ba138baeadf0bd1c2055b7bb43863/#synchronising-multiple-media-elements) (but renamed) which can be used to sync and control multiple audio / video elements.\n\n⚠️ This library is designed as a polyfill but note that `MediaController` is renamed to `MediaGroupController` and the `mediagroup` attribute is renamed to just `group` to avoid any issues with Safari where the original API is still implemented (while not working properly).\n\n## Example ([CodeSandbox](https://codesandbox.io/s/media-group-4p9v81))\n\n```html\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/media-group\"\u003e\u003c/script\u003e\n\n\u003cvideo\n  group=\"madmax\"\n  src=\"https://stream.mux.com/ibw0201Usmvp9fcDyXRzGwCu01IZXiT5duks8OoO3OQ01e00/low.mp4\"\n  controls\n  playsinline\n  muted\n\u003e\u003c/video\u003e\n\n\u003caudio\n  group=\"madmax\"\n  src=\"https://stream.mux.com/0201RDkkUbY3501qR9fYuqOd8UXQNNyO3JLNcMG9kW4rpA/audio.m4a\"\n  controls\n  playsinline\n\u003e\u003c/audio\u003e\n```\n\n## Related\n\n- [Media Chrome](https://github.com/muxinc/media-chrome) Your media player's dancing suit. 🕺\n- [`\u003cmux-video\u003e`](https://github.com/muxinc/elements/tree/main/packages/mux-video) A Mux-flavored HTML5 video element w/ hls.js and Mux data builtin.\n- [`\u003cmux-player\u003e`](https://github.com/muxinc/elements/tree/main/packages/mux-player) The official Mux-flavored video player web component.\n- [`\u003cyoutube-video\u003e`](https://github.com/muxinc/media-elements/tree/main/packages/youtube-video-element) A web component for the YouTube player.\n- [`\u003cvimeo-video\u003e`](https://github.com/muxinc/media-elements/tree/main/packages/vimeo-video-element) A web component for the Vimeo player.\n- [`\u003cvideojs-video\u003e`](https://github.com/muxinc/media-elements/tree/main/packages/videojs-video-element) A web component for Video.js.\n- [`\u003cwistia-video\u003e`](https://github.com/muxinc/media-elements/tree/main/packages/wistia-video-element) A web component for the Wistia player.\n- [`\u003cjwplayer-video\u003e`](https://github.com/muxinc/media-elements/tree/main/packages/jwplayer-video-element) A web component for the JW player.\n- [`\u003chls-video\u003e`](https://github.com/muxinc/media-elements/tree/main/packages/hls-video-element) A web component for playing HTTP Live Streaming (HLS) videos.\n- [`castable-video`](https://github.com/muxinc/media-elements/tree/main/packages/castable-video) Cast your video element to the big screen with ease!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuxinc%2Fmedia-group","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuxinc%2Fmedia-group","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuxinc%2Fmedia-group/lists"}