{"id":18749360,"url":"https://github.com/mengdu/poster","last_synced_at":"2025-04-12T23:31:21.017Z","repository":{"id":42414521,"uuid":"62109451","full_name":"mengdu/poster","owner":"mengdu","description":"浏览器端video视频截图，视频封面获取","archived":false,"fork":false,"pushed_at":"2019-11-13T10:16:53.000Z","size":3208,"stargazers_count":45,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T13:34:54.919Z","etag":null,"topics":["poster","screenshot","video-screenshot"],"latest_commit_sha":null,"homepage":"https://mengdu.github.io/poster/","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/mengdu.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":"2016-06-28T04:13:24.000Z","updated_at":"2025-02-17T06:06:15.000Z","dependencies_parsed_at":"2022-09-16T03:40:22.853Z","dependency_job_id":null,"html_url":"https://github.com/mengdu/poster","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/mengdu%2Fposter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengdu%2Fposter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengdu%2Fposter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengdu%2Fposter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mengdu","download_url":"https://codeload.github.com/mengdu/poster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647257,"owners_count":21139081,"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":["poster","screenshot","video-screenshot"],"created_at":"2024-11-07T17:07:16.065Z","updated_at":"2025-04-12T23:31:20.172Z","avatar_url":"https://github.com/mengdu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Poster\n\n这是一个前端 Video 视频播放截图工具。\n\n通过 canvas 实现从video标签截取当前播放画面。\n\n## use\n\n```html\n\u003cscript src=\"./libs/video.js\"\u003e\u003c/script\u003e\n```\n\n+ **window.$poster.videoScreenshot(video, time, size, cb(err, blob))** 视频截图，不支持跨域；time 为指定视频进度，默认为0\n  - video HTMLVideoElement 标签\n  - time 0|number|[number] 定截图视频播放位置，秒；0 表示截取当前\n  - size [w, h] 指定输出尺寸，默认输出原尺寸；可选\n  - cb 回调函数，返回 (err, {orgSize, size, at, blob})\n\n+ **window.$poster.getMetadata(url, cb(err, data))** 获取视频数据元\n\n## 兼容性\n\n你的浏览器需要支持`HTML5`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengdu%2Fposter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmengdu%2Fposter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengdu%2Fposter/lists"}