{"id":46834863,"url":"https://github.com/meceware/iwideo","last_synced_at":"2026-03-10T11:16:27.140Z","repository":{"id":54416265,"uuid":"195084662","full_name":"meceware/iwideo","owner":"meceware","description":"No-dependencies library for displaying background videos. Supports self hosted videos, YouTube and Vimeo.","archived":false,"fork":false,"pushed_at":"2025-09-30T21:28:04.000Z","size":2025,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-30T23:25:15.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://meceware.github.io/iwideo/","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/meceware.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-07-03T15:48:20.000Z","updated_at":"2025-09-30T21:26:00.000Z","dependencies_parsed_at":"2025-04-04T18:30:05.230Z","dependency_job_id":"252e415b-4cfe-40a3-a39b-38a5408be131","html_url":"https://github.com/meceware/iwideo","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/meceware/iwideo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meceware%2Fiwideo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meceware%2Fiwideo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meceware%2Fiwideo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meceware%2Fiwideo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meceware","download_url":"https://codeload.github.com/meceware/iwideo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meceware%2Fiwideo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":[],"created_at":"2026-03-10T11:16:26.370Z","updated_at":"2026-03-10T11:16:27.133Z","avatar_url":"https://github.com/meceware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iwideo\n## No-dependencies library for displaying background videos in browsers\n\nIt supports all modern browsers. It disables the videos on mobile browsers or windows under 768px, if wanted.\n\n## Supported Providers\n\n* Self Hosted Videos\n* Youtube\n* Vimeo\n\n## Build\n\nClone the repo, run\n\n```\nnpm install\n```\n\nfollowed by\n\n```\nnpm run build\n```\n\nOr with docker,\n\n```bash\ndocker run --rm --volume ./:/app --workdir /app --publish 3000:3000 node:24.9.0 /bin/bash -c \"npm install \u0026\u0026 npm run build\"\n```\n\nThe output minified JS file will be at the dist folder.\n\nYou can help out by reporting any issues and feature requests.\n\n## How To Use\n\nInclude the library\n\n```html\n\u003cscript type=\"text/javascript\" src=\"js/iwideo.min.js\"\u003e\u003c/script\u003e\n```\n\nThe default options are\n\n```javascript\n{\n  wrapperClass: 'iwideo-wrapper',\n  overlayClass: 'iwideo-overlay',\n  src: false,\n  ratio: 1.7778, //16:9 ratio\n  autoplay: true,\n  extra: false,\n  loop: true,\n  mute: true,\n  poster: '',\n  posterStyle: { size: 'cover', position: 'center center', repeat: 'no-repeat', attachment: 'scroll' },\n  zIndex: -1,\n  autoResize: true,\n  isMobile: () =\u003e {\n    const isMobile = /Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/g.test(navigator.userAgent || navigator.vendor || global.opera);\n    return isMobile || ( global.innerWidth \u003c 768 );\n  },\n}\n```\n\nTo create background local-hosted video\n\n```javascript\nvar myBackground = new iwideo( '#element-selector', {\n  src: 'mp4:./local-video.mp4,webm:./local-video.webm,ogv:./local-video.ogv',\n  poster: './local-poster.jpg'\n});\n```\n\nTo create background YouTube video\n\n```javascript\nvar myBackground = new iwideo( '#element-selector', {\n  src: 'https://www.youtube.com/watch?v=uVW81kp2HSo',\n  poster: 'https://i3.ytimg.com/vi/uVW81kp2HSo/hqdefault.jpg'\n});\n```\n\nTo create background Vimeo video\n\n```javascript\nvar myBackground = new iwideo( '#element-selector', {\n  src: 'https://vimeo.com/76979871',\n  poster: 'https://i.vimeocdn.com/video/452001751_1280x720.jpg'\n});\n```\n\nYou can also set data-iwideo attribute of the wrapper element, the script will automatically initialize the background videos. To use the data attribute, set data-iwideo attribute as URI encoded JSON string of the options. In React, it can be created as the following:\n\n```javascript\nvar options = {\n  src: 'mp4:./local-video.mp4,webm:./local-video.webm,ogv:./local-video.ogv',\n  poster: './local-poster.jpg'\n};\n\n[].forEach.call( document.querySelectorAll( '.html5-video' ), function( div ) {\n  div.setAttribute( 'data-iwideo', encodeURIComponent( JSON.stringify( options ) ) );\n});\n```\n\nIf you want to destroy the background video or all background videos initialized with `data-iwideo` data attribute, call\n\n```javascript\n// Destroy the element initialized with javascript\niwideo.destroy( '#element-selector' );\n// Destroy all initialized with data-iwideo\niwideo.destroyAll();\n```\n\nIf you want to scan and initialize the DOM again, call\n\n```javascript\niwideo.scan();\n```\n\nThis will initialize all elements with `data-iwideo` data attribute.\n\nIf you want to enable videos on mobile as well, set `isMobile` to false or you can add your custom function.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeceware%2Fiwideo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeceware%2Fiwideo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeceware%2Fiwideo/lists"}