{"id":21682797,"url":"https://github.com/adrianliaw/meteor-youtube-iframe-api","last_synced_at":"2025-04-12T06:54:19.118Z","repository":{"id":20474666,"uuid":"23752296","full_name":"adrianliaw/meteor-youtube-iframe-api","owner":"adrianliaw","description":"Youtube Iframe API Meteor package","archived":false,"fork":false,"pushed_at":"2014-11-21T03:00:09.000Z","size":238,"stargazers_count":6,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T06:54:14.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://atmospherejs.com/adrianliaw/youtube-iframe-api","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/adrianliaw.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}},"created_at":"2014-09-07T04:19:47.000Z","updated_at":"2021-08-21T00:48:30.000Z","dependencies_parsed_at":"2022-07-31T21:18:03.089Z","dependency_job_id":null,"html_url":"https://github.com/adrianliaw/meteor-youtube-iframe-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliaw%2Fmeteor-youtube-iframe-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliaw%2Fmeteor-youtube-iframe-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliaw%2Fmeteor-youtube-iframe-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliaw%2Fmeteor-youtube-iframe-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianliaw","download_url":"https://codeload.github.com/adrianliaw/meteor-youtube-iframe-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530588,"owners_count":21119595,"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":[],"created_at":"2024-11-25T15:40:37.588Z","updated_at":"2025-04-12T06:54:19.093Z","avatar_url":"https://github.com/adrianliaw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Meteor YouTube Iframe API\n=========================\n\nYouTube Iframe API for Meteor\n\nBasic Usage:\n------------\nAdd package to project.\n\n    meteor add adrianliaw:youtube-iframe-api\n\nSome HTML Setups, you need to create a div with an id.\n\n    \u003cbody\u003e\n        \u003cdiv id=\"player\"\u003e\u003c/div\u003e\n    \u003c/body\u003e\n\nIn JavaScript, you can include a video like this.\n\n    // Make sure it's in client\n    if (Meteor.isClient) {\n    \n        // YouTube API will call onYouTubeIframeAPIReady() when API ready.\n        // Make sure it's a global variable.\n        onYouTubeIframeAPIReady = function () {\n      \n            // New Video Player, the first argument is the id of the div.\n            // Make sure it's a global variable.\n            player = new YT.Player(\"player\", {\n        \n                height: \"400\", \n                width: \"600\", \n        \n                // videoId is the \"v\" in URL (ex: http://www.youtube.com/watch?v=LdH1hSWGFGU, videoId = \"LdH1hSWGFGU\")\n                videoId: \"LdH1hSWGFGU\", \n          \n                // Events like ready, state change, \n                events: {\n          \n                    onReady: function (event) {\n            \n                        // Play video when player ready.\n                        event.target.playVideo();\n                    }\n          \n                }\n        \n            });\n      \n        };\n\n        YT.load();\n    }\n\n\n### For full documentation of YouTube Iframe API, see [Google Developers](https://developers.google.com/youtube/iframe_api_reference)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianliaw%2Fmeteor-youtube-iframe-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianliaw%2Fmeteor-youtube-iframe-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianliaw%2Fmeteor-youtube-iframe-api/lists"}