{"id":16760280,"url":"https://github.com/ryanve/plays","last_synced_at":"2025-10-27T09:34:34.134Z","repository":{"id":11537337,"uuid":"14022049","full_name":"ryanve/plays","owner":"ryanve","description":"Detect playable audio and video filetypes","archived":false,"fork":false,"pushed_at":"2014-02-24T03:00:57.000Z","size":148,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T22:51:29.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/plays","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-31T16:19:37.000Z","updated_at":"2023-08-08T21:08:35.000Z","dependencies_parsed_at":"2022-08-29T05:21:34.544Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/plays","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ryanve/plays","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fplays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fplays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fplays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fplays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/plays/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fplays/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262450328,"owners_count":23313015,"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-10-13T04:22:58.446Z","updated_at":"2025-10-27T09:34:34.040Z","avatar_url":"https://github.com/ryanve.png","language":"JavaScript","readme":"# [plays](../../)\n\n#### HTML5 `\u003caudio\u003e` and `\u003cvideo\u003e` feature detects\n\n## API ([0.7](../../releases))\n\n### plays(type, elem?)\n\n```js\nplays('audio/mp3') // =\u003e boolean\nplays('mp3', 'audio') // =\u003e boolean\n[\"mp3\", \"wav\"].some(plays, 'audio') // =\u003e boolean\n```\n\n### Properties\n\n#### plays.audio \u0026rArr; array\n\n```js\nplays.audio[0] // =\u003e the most probable type\nplays.audio.length // =\u003e number of available types\nplays.audio.m4a // =\u003e \"probably\"|\"maybe\"|\"\"\nplays.audio.mp3 // =\u003e \"probably\"|\"maybe\"|\"\"\nplays.audio.wav // =\u003e \"probably\"|\"maybe\"|\"\"\nplays.audio.ogg // =\u003e \"probably\"|\"maybe\"|\"\"\nplays.audio.opus // =\u003e \"probably\"|\"maybe\"|\"\"\n```\n\n#### plays.video \u0026rArr; array\n\n```js\nplays.video[0] // =\u003e the most probable type\nplays.video.length // =\u003e number of available types\nplays.video.ogg // =\u003e \"probably\"|\"maybe\"|\"\"\nplays.video.mp4 // =\u003e \"probably\"|\"maybe\"|\"\"\nplays.video.webm // =\u003e \"probably\"|\"maybe\"|\"\"\n```\n\n## License: [MIT](http://opensource.org/licenses/MIT)\n\nCopyright (C) 2013 by [Ryan Van Etten](https://github.com/ryanve)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fplays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Fplays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fplays/lists"}