{"id":27098627,"url":"https://github.com/edonosotti/smarter-video-embeds-tutorial","last_synced_at":"2026-05-05T14:33:35.393Z","repository":{"id":76241035,"uuid":"265681541","full_name":"edonosotti/smarter-video-embeds-tutorial","owner":"edonosotti","description":"This tutorial code shows how to embed YouTube, Vimeo and self-hosted videos in HTML pages, customize them and control them via JavaScript.","archived":false,"fork":false,"pushed_at":"2020-05-26T20:46:34.000Z","size":19550,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T11:51:45.794Z","etag":null,"topics":["bootstrap","html5","javascript","jquery","js","video","vimeo","youtube"],"latest_commit_sha":null,"homepage":"https://edonosotti.github.io/smarter-video-embeds-tutorial/","language":"HTML","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/edonosotti.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}},"created_at":"2020-05-20T20:41:39.000Z","updated_at":"2023-03-07T12:20:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"5cbb9da6-40b5-4ab2-a527-83b557603353","html_url":"https://github.com/edonosotti/smarter-video-embeds-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edonosotti/smarter-video-embeds-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonosotti%2Fsmarter-video-embeds-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonosotti%2Fsmarter-video-embeds-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonosotti%2Fsmarter-video-embeds-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonosotti%2Fsmarter-video-embeds-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edonosotti","download_url":"https://codeload.github.com/edonosotti/smarter-video-embeds-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonosotti%2Fsmarter-video-embeds-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32653584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["bootstrap","html5","javascript","jquery","js","video","vimeo","youtube"],"created_at":"2025-04-06T11:50:49.569Z","updated_at":"2026-05-05T14:33:35.387Z","avatar_url":"https://github.com/edonosotti.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smartify Your Video Embeds 🎥 - Tutorial\n\n**NOTE:** This code was written for an\n[article](https://medium.com/rockedscience/smartify-your-video-embeds-f1cc13b775b5)\nin the **RockedScience** publication on Medium.\n\n## Description\n\nThis tutorial shows how to:\n\n * embed externally hosted videos (on YouTube and Vimeo) into `HTML` pages\n * embed self-hosted hosted videos into `HTML` pages\n * make the embeds responsive with CSS or JS\n * use custom cover images on all kinds of videos\n * change resolution depending on the device screen size\n * set video options\n * use `JavaScript` to control videos\n\n## Code\n\nSee:\n\n * [demo.html](www/demo.html)\n * [demo.css](www/demo.css)\n * [demo.js](www/demo.js)\n\nand check the comments in the files.\n\n[Open in JSFiddle](https://jsfiddle.net/gh/get/library/pure/edonosotti/smarter-video-embeds-tutorial/tree/master/www)\n\n## Reference documentation\n\nSee:\n\n - https://www.w3schools.com/tags/tag_video.asp\n - https://www.w3schools.com/tags/ref_av_dom.asp\n - https://developers.google.com/web/updates/2017/09/autoplay-policy-changes\n - https://developers.google.com/web/updates/2016/07/autoplay\n - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video\n - https://stackoverflow.com/questions/50287175/html5-video-autoplay-feature-not-working-without-muted/50287806\n - https://stackoverflow.com/questions/46745684/muted-autoplay-videos-stop-playing-in-safari-11-0\n\n## Kudos\n\nThis demo uses code and assets from:\n\n - [Bootstrap](https://getbootstrap.com)\n - [FitVids.js](http://fitvidsjs.com)\n - [jQuery](https://jquery.com)\n - [FontAwesome](https://fontawesome.com)\n - [Google Fonts](https://fonts.google.com)\n\nExternal videos are randomly picked from [YouTube](https://www.youtube.com) and [Vimeo](https://vimeo.com) and were publicly available at the time of writing. Cover images are picked from [Unsplash](https://unsplash.com) and served by [Lorem Picsum](https://picsum.photos). Some videos are picked from [Pexels](https://www.pexels.com).\n\nCode has been built on [JSFiddle](https://jsfiddle.net), hosting for the demo files is provided by [GitHub Pages](https://pages.github.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedonosotti%2Fsmarter-video-embeds-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedonosotti%2Fsmarter-video-embeds-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedonosotti%2Fsmarter-video-embeds-tutorial/lists"}