{"id":13805507,"url":"https://github.com/MozillaReality/immersive-custom-elements","last_synced_at":"2025-05-13T19:31:28.743Z","repository":{"id":81171469,"uuid":"189366928","full_name":"MozillaReality/immersive-custom-elements","owner":"MozillaReality","description":"INACTIVE - Immersive Custom Elements","archived":true,"fork":false,"pushed_at":"2019-11-28T00:59:49.000Z","size":93233,"stargazers_count":134,"open_issues_count":0,"forks_count":8,"subscribers_count":16,"default_branch":"dev","last_synced_at":"2024-08-04T01:05:02.366Z","etag":null,"topics":["inactive","unmaintained"],"latest_commit_sha":null,"homepage":"https://mixedreality.mozilla.org/immersive-custom-elements/examples/index.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MozillaReality.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}},"created_at":"2019-05-30T07:27:49.000Z","updated_at":"2024-07-22T15:47:27.000Z","dependencies_parsed_at":"2023-07-07T22:31:29.801Z","dependency_job_id":null,"html_url":"https://github.com/MozillaReality/immersive-custom-elements","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MozillaReality%2Fimmersive-custom-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MozillaReality%2Fimmersive-custom-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MozillaReality%2Fimmersive-custom-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MozillaReality%2Fimmersive-custom-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MozillaReality","download_url":"https://codeload.github.com/MozillaReality/immersive-custom-elements/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225254348,"owners_count":17445166,"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":["inactive","unmaintained"],"created_at":"2024-08-04T01:01:01.819Z","updated_at":"2024-11-18T21:31:20.234Z","avatar_url":"https://github.com/MozillaReality.png","language":"JavaScript","funding_links":[],"categories":["Real World","目录"],"sub_categories":["Component Libraries"],"readme":"# Immersive Custom Elements\n\n`immersive-custom-elements` is a set of web components to embed immersive (VR \u0026 AR) content into \nyour web page by using custom element tags. It currently includes components for\n\n* 360 images\n* 360 video\n\u003c!-- * 360 image tours --\u003e\n\n\n[Demo](https://mixedreality.mozilla.org/immersive-custom-elements/examples/index.html) / \n[Blog post](https://blog.mozvr.com/custom-elements-for-the-immersive-web/)\n\n## Usage\n\n### Sample code\n\nAdd the link to `immersive-custom-elements.js` with `\u003cscript\u003e` tag. You can download the file from this repository or use the link to the CDN.\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript src=\"https://rawcdn.githack.com/MozillaReality/immersive-custom-elements/v0.2.0/build/immersive-custom-elements.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cimg-360 src=\"360-landscape.jpg\" width=\"640\" height=\"360\"\u003e\u003c/img-360\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Custom element tags\n\n- [\\\u003cimg-360\\\u003e](#img-360)\n- [\\\u003cvideo-360\\\u003e](#video-360)\n\n### \\\u003cimg-360\\\u003e\n\nDisplays an interactive 360 degree photo.\n\n```javascript\n\u003cimg-360 src=\"imagefile.jpg\" width=\"640\" height=\"360\"\u003e\u003c/img-360\u003e\n```\n\n| attribute | type | required | description |\n| ---- | ---- | ---- | ---- |\n| src | strings | yes | Path to image file |\n| width | number | yes | element width |\n| height | number | yes | element height |\n\n![GitHub Logo](screenshots/img-360.gif)\n\n### \\\u003cvideo-360\\\u003e\n\nPlays an interactive 360 degree video. Click video to start playing.\n\n```javascript\n\u003cvideo-360 src=\"video.mp4\" width=\"640\" height=\"360\" loop\u003e\u003c/video\u003e\n```\n\n| attribute | type | required | description |\n| ---- | ---- | ---- | ---- |\n| src | strings | yes | Path to video file |\n| width | number | yes | element width |\n| height | number | yes | element height |\n| loop | - | no | video loops if defined |\n| muted | - | no | the audio output of the video is muted if defined |\n| autoplay | - | no | video automatically starts playing if defined |\n\n![GitHub Logo](screenshots/video-360.gif)\n\n## Immersive (VR) mode\n\nYou can enter immersive mode by clicking \"ENTER VR\" button if you have a VR headset.\n\n![GitHub Logo](screenshots/immersive.gif)\n\n## Development\n\n### How to build\n\n```sh\n$ git clone https://github.com/MozillaReality/immersive-custom-elements.git\n$ cd immersive-custom-elements\n$ npm install\n$ npm run build\n```\n\n### How to locally run\n\n```sh\n$ npm run start\n# local server boots up. Access http://localhost:8080/examples/index.html on your browser.\n```\n\n## License\n\nMozilla Public License Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMozillaReality%2Fimmersive-custom-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMozillaReality%2Fimmersive-custom-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMozillaReality%2Fimmersive-custom-elements/lists"}