{"library":"youtube-player","type":"library","category":null,"description":"youtube-player provides a robust abstraction layer over the official YouTube IFrame Player API. It addresses common pain points like managing global callbacks and ensuring player readiness by registering listeners, queuing API calls until the player is ready, and wrapping all player functions in promises. This allows for a more synchronous-looking, chainable API experience, significantly simplifying interactions with the YouTube player. The current stable version is 5.6.0, with the last notable updates in 2019, indicating a mature and relatively low-churn project. Key differentiators include its promise-based API, automatic state management, and non-interference with global YIPA callback functions, offering a cleaner, more reliable way to embed and control YouTube videos in web applications.","language":"javascript","status":"maintenance","version":"5.6.0","tags":["javascript","youtube","iframe","player","api","promise","async","video"],"last_verified":"Wed May 27","install":[{"cmd":"npm install youtube-player","imports":["import YouTubePlayer from 'youtube-player';","player.on('stateChange', (event) => { /* ... */ });","player.loadVideoById('VIDEO_ID').then(() => { /* ... */ });"]},{"cmd":"yarn add youtube-player","imports":[]},{"cmd":"pnpm add youtube-player","imports":[]}],"homepage":null,"github":"https://github.com/gajus/youtube-player","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/youtube-player","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/youtube-player/compatibility"}}