{"id":13760502,"url":"https://github.com/adrienjoly/playemjs","last_synced_at":"2026-02-27T12:32:08.849Z","repository":{"id":12871140,"uuid":"15547498","full_name":"adrienjoly/playemjs","owner":"adrienjoly","description":"▶️ Streams a list of tracks from Youtube, Soundcloud, Vimeo...","archived":false,"fork":false,"pushed_at":"2024-12-07T18:25:40.000Z","size":3555,"stargazers_count":101,"open_issues_count":19,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-08T00:22:55.054Z","etag":null,"topics":["component","javascript","music","playback","streaming","youtube"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/playemjs","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/adrienjoly.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":"2013-12-31T09:40:26.000Z","updated_at":"2026-01-31T09:08:12.000Z","dependencies_parsed_at":"2025-02-28T13:14:13.856Z","dependency_job_id":"21d63117-d7a6-4a78-a198-884a12b77ee4","html_url":"https://github.com/adrienjoly/playemjs","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/adrienjoly/playemjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Fplayemjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Fplayemjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Fplayemjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Fplayemjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrienjoly","download_url":"https://codeload.github.com/adrienjoly/playemjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Fplayemjs/sbom","scorecard":{"id":168123,"data":{"date":"2025-08-11","repo":{"name":"github.com/adrienjoly/playemjs","commit":"7a43de10b392a9abb19951f34488be2ced353de1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci-tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-tests.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/adrienjoly/playemjs/ci-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-tests.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/adrienjoly/playemjs/ci-tests.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T15:30:49.612Z","repository_id":12871140,"created_at":"2025-08-16T15:30:49.612Z","updated_at":"2025-08-16T15:30:49.612Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29894929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"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":["component","javascript","music","playback","streaming","youtube"],"created_at":"2024-08-03T13:01:11.658Z","updated_at":"2026-02-27T12:32:08.796Z","avatar_url":"https://github.com/adrienjoly.png","language":"JavaScript","funding_links":[],"categories":["Video/Audio","UI","视频/音频"],"sub_categories":["Other","其它"],"readme":"[![Analytics](https://ga-beacon.appspot.com/UA-1858235-12/playemjs/github)](https://github.com/igrigorik/ga-beacon)\n\nPlayemJS\n========\n\nPlayemJS is a front-end JavaScript component that manages a audio/video track queue and plays those tracks sequentially.\n\nIt can currently play tracks from the following streaming platforms:\n- Youtube\n- Soundcloud\n- Deezer\n- Bandcamp\n- Vimeo\n- Dailymotion\n- Jamendo\n- ... and MP3 files hosted online\n\nDepending on the platform of each track, PlayemJS dynamically embeds the media in a HTML element, or through the Soundmanager2 audio player.\n\nPlayemJS powers the music curation service [Openwhyd.org](http://openwhyd.org) (formerly whyd.com). That's the best demonstration of its capabilities.\n\nExamples\n-----\n\n### 1. Play just a Vimeo video\n\n```html\n\u003cdiv id=\"playem_video\"\u003e\u003c/div\u003e\n\u003cscript src=\"playem.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"playem-vimeo.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const handlers = {};\n  const config = {\n      playerContainer: document.getElementById(\"playem_video\"),\n  };\n\n  new VimeoPlayer(handlers, config)\n    .play(\"98417189\");\n\u003c/script\u003e\n```\n\n▶️ [Watch it work live on Codepen](http://codepen.io/adrienjoly/pen/QjLRXa?editors=101)\n\n### 2. Play Vimeo and Youtube videos\n\nUsing a playlist, multiple players and Event logging.\n\n```html\n\u003cdiv id=\"playem_video\"\u003e\u003c/div\u003e\n\u003cscript src=\"playem.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"playem-vimeo.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"playem-youtube.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  YOUTUBE_API_KEY = \"XxXxXxXxXxXxXxXxXxXxXxXxXxXxXx\"; \n\n  const config = {\n      playerContainer: document.getElementById(\"playem_video\"),\n  };\n\n  // init playem and players\n  var playem = new Playem();\n  playem.addPlayer(VimeoPlayer, config);\n  playem.addPlayer(YoutubePlayer, config);\n\n  // play video tracks\n  playem.addTrackByUrl(\"vimeo.com/50872925\");\n  playem.addTrackByUrl(\"youtube.com/watch?v=2m5K5jxME18\");\n  playem.play();\n\u003c/script\u003e\n```\n\n▶️ [Watch it work live on Codepen](https://codepen.io/adrienjoly/pen/EXXEXq?editors=1011)\n\n### 3. Play Video and Audio streams\n\nRelies on soundmanager2.\n\n```html\n\u003cdiv id=\"playem_video\"\u003e\u003c/div\u003e\n\u003cscript src=\"playem.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"playem-vimeo.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"playem-audiofile.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/soundmanager2/2.97a.20150601/script/soundmanager2-jsmin.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const config = {\n      playerContainer: document.getElementById(\"playem_video\"),\n  };\n\n  // init playem and players\n  var playem = new Playem();\n  playem.addPlayer(AudioFilePlayer, config);\n  playem.addPlayer(VimeoPlayer, config);\n\n  // init logging for player events\n  playem.on(\"onTrackChange\", (data) =\u003e console.log(\"play track \" + data.trackId));\n  playem.on(\"onError\", (data) =\u003e console.error(\"error:\", data));\n\n  // create a playlist\n  playem.addTrackByUrl(\"https://archive.org/download/JeremyJereskyDrumLoop/drumLoop.mp3\");\n  playem.addTrackByUrl(\"vimeo.com/50872925\");\n\n  // wait for soundmanager to be ready before playing tracks\n  soundManager.setup({ onready: () =\u003e playem.play() });\n  soundManager.beginDelayedInit();\n\u003c/script\u003e\n```\n\n▶️ [Watch it work live on Codepen](https://codepen.io/adrienjoly/pen/bRRMdQ?editors=1011)\n\n\nUsage with npm\n--------------\n\n    npm install playemjs\n\nThen use it that way in your front-end code:\n\n```html\n\u003cdiv id=\"container\"\u003e\u003c/div\u003e\n\u003cscript src=\"dist/playem-min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  // your app's API KEYS here\n  window.DEEZER_APP_ID = 123456789;\n  window.DEEZER_CHANNEL_URL = \"http://mysite.com/deezer-channel.html\";\n  window.JAMENDO_CLIENT_ID = \"f9ff9f0f\";\n\n  var playerParams = {\n    playerId: \"genericplayer\",\n    origin: window.location.host || window.location.hostname,\n    playerContainer: document.getElementById(\"container\")\n  };\n\n  window.makePlayem(null, playerParams, function onLoaded(playem){\n    playem.on(\"onTrackChange\", function(track){\n      console.log(\"streaming track \" + track.trackId + \" from \" + track.playerName);\n    });\n    playem.addTrackByUrl(\"https://www.youtube.com/watch?v=fuhHU_BZXSk\");\n    playem.addTrackByUrl(\"https://www.dailymotion.com/video/x25ohb\");\n    playem.play();\n  });\n\u003c/script\u003e\n```\n\nReact component\n---------------\n\n(Work in progress) Check out [react-music-player](https://github.com/adrienjoly/react-music-player).\n\nTests and further development\n-----------------------------\n    \nYou can run tests from that page:\n\n- [PlayemJS Youtube Video Test](https://cdn.rawgit.com/adrienjoly/playemjs/master/test/test-youtube/index.html)\n- [PlayemJS Video Players Test](https://cdn.rawgit.com/adrienjoly/playemjs/master/test/test-players/index.html)\n- [PlayemJS URL Detection Test](https://cdn.rawgit.com/adrienjoly/playemjs/master/test/test-detection/index.html)\n\n\nIf they don't work from there, you can clone the project, and run them locally.\n\nAny help in documenting/fixing/developing this project is welcome! :-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrienjoly%2Fplayemjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrienjoly%2Fplayemjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrienjoly%2Fplayemjs/lists"}