{"id":33091219,"url":"https://github.com/VodkaBears/Vide","last_synced_at":"2025-11-16T14:00:44.791Z","repository":{"id":18192200,"uuid":"21311893","full_name":"vodkabears/Vide","owner":"vodkabears","description":"No longer actively maintained.","archived":false,"fork":false,"pushed_at":"2018-05-11T14:11:41.000Z","size":48653,"stargazers_count":3274,"open_issues_count":74,"forks_count":515,"subscribers_count":103,"default_branch":"master","last_synced_at":"2025-09-28T16:39:24.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://vodkabears.github.io/vide/","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/vodkabears.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-28T22:04:51.000Z","updated_at":"2025-09-16T02:14:05.000Z","dependencies_parsed_at":"2022-08-07T09:00:33.312Z","dependency_job_id":null,"html_url":"https://github.com/vodkabears/Vide","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/vodkabears/Vide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodkabears%2FVide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodkabears%2FVide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodkabears%2FVide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodkabears%2FVide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vodkabears","download_url":"https://codeload.github.com/vodkabears/Vide/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodkabears%2FVide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284719042,"owners_count":27052182,"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-11-16T02:00:05.974Z","response_time":65,"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":[],"created_at":"2025-11-14T18:00:23.172Z","updated_at":"2025-11-16T14:00:44.774Z","avatar_url":"https://github.com/vodkabears.png","language":"JavaScript","readme":"[![NPM version](https://img.shields.io/npm/v/vide.svg?style=flat)](https://npmjs.org/package/vide)\n[![Bower version](https://badge.fury.io/bo/vide.svg)](http://badge.fury.io/bo/vide)\n[![Travis](https://travis-ci.org/VodkaBears/Vide.svg?branch=master)](https://travis-ci.org/VodkaBears/Vide)\nVide\n====\n\n**No longer actively maintained. I am not interested to maintain jQuery plugins anymore. If you have some fixes, feel free to make PR.**\n\nEasy as hell jQuery plugin for video backgrounds.\n\n## Notes\n\n* All modern desktop browsers are supported.\n* IE9+\n* iOS plays video from a browser only in the native player. So video for iOS is disabled, only fullscreen poster will be used.\n* Some android devices play video, some not — go figure. So video for android is disabled, only fullscreen poster will be used.\n\n## Instructions\n\nDownload it from [GitHub](https://github.com/VodkaBears/Vide/releases/latest) or via Bower:\n`bower install vide`\n\nInclude plugin: `\u003cscript src=\"js/jquery.vide.min.js\"\u003e\u003c/script\u003e`\n\nPrepare your video in several formats like '.webm', '.mp4' for cross browser compatibility, also add a poster with `.jpg`, `.png` or `.gif` extension:\n```\npath/\n├── to/\n│   ├── video.mp4\n│   ├── video.ogv\n│   ├── video.webm\n│   └── video.jpg\n```\n\nAdd `data-vide-bg` attribute with a path to the video and poster without extension, video and poster must have the same name. Add `data-vide-options` to pass vide options, if you need it. By default video is muted, looped and starts automatically.\n```html\n\u003cdiv style=\"width: 1000px; height: 500px;\"\n  data-vide-bg=\"path/to/video\" data-vide-options=\"loop: false, muted: false, position: 0% 0%\"\u003e\n\u003c/div\u003e\n```\n\nAlso you can set extended path:\n```html\n\u003cdiv style=\"width: 1000px; height: 500px;\"\n  data-vide-bg=\"mp4: path/to/video1, webm: path/to/video2, ogv: path/to/video3, poster: path/to/poster\"\n  data-vide-options=\"posterType: jpg, loop: false, muted: false, position: 0% 0%\"\u003e\n\u003c/div\u003e\n```\n\nIn some situations it can be helpful to initialize it with JS because Vide doesn't have mutation observers:\n```js\n$('#myBlock').vide('path/to/video');\n$('#myBlock').vide('path/to/video', {\n...options...\n});\n$('#myBlock').vide({\n  mp4: path/to/video1,\n  webm: path/to/video2,\n  ogv: path/to/video3,\n  poster: path/to/poster\n}, {\n...options...\n});\n$('#myBlock').vide('extended path as a string', 'options as a string');\n```\n\nEasy as hell.\n\n## Options\n\nBelow is a complete list of options and matching default values:\n\n```js\n{\n  volume: 1,\n  playbackRate: 1,\n  muted: true,\n  loop: true,\n  autoplay: true,\n  position: '50% 50%', // Similar to the CSS `background-position` property.\n  posterType: 'detect', // Poster image type. \"detect\" — auto-detection; \"none\" — no poster; \"jpg\", \"png\", \"gif\",... - extensions.\n  resizing: true, // Auto-resizing, read: https://github.com/VodkaBears/Vide#resizing\n  bgColor: 'transparent', // Allow custom background-color for Vide div,\n  className: '' // Add custom CSS class to Vide div\n}\n```\n\n## Methods\n\nBelow is a complete list of methods:\n\n```js\n// Get instance of the plugin\nvar instance = $('#yourElement').data('vide');\n\n// Get video element of the background. Do what you want.\ninstance.getVideoObject();\n\n// Resize video background.\n// It calls automatically, if window resize (or element, if you will use something like https://github.com/cowboy/jquery-resize).\ninstance.resize();\n\n// Destroy plugin instance\ninstance.destroy();\n```\n\n## Resizing\n\nThe Vide plugin resizes if the window resizes. If you will use something like https://github.com/cowboy/jquery-resize, it will resize automatically when the container resizes. Or simply use `resize()` method whenever you need.\n\nSet the `resizing` option to false to disable auto-resizing.\n\n## Encoding video\n\nhttp://diveintohtml5.info/video.html#miro\n\n## Meteor\n\n### Install\n\n```sh\nmeteor add vodkabears:vide\n```\n\n### Usage\n\nBecause of how meteor renders templates reactively you will need to initialize\nmanually for the templates you want to use vide in.\n\n```js\nTemplate.templateName.onRendered(function() {\n  this.$('#elementName').vide('fileNameWithoutExtension');\n});\n```\n\nMeteor integration by [zimme](https://github.com/zimme).\n\n## Ruby Gem\n\n[Vider](https://github.com/wazery/vider) by Islam Wazery.\n\n## License\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2015 Ilya Makarov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":[],"categories":["25. 音频/视频 ##","25. 音频/视频"],"sub_categories":["13.20 视差滚动(Parallax Scrolling) ###","24.3 Web Sockets"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVodkaBears%2FVide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVodkaBears%2FVide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVodkaBears%2FVide/lists"}