登录 注册
图像、视频与音频安全与隐私工具开发者工具 deprecatedhtml5-videojavascriptplyrvideojsvimeo
29,988
Stars
3,100
Forks
414
Watchers
1
Open Issues
MIT
许可证
JavaScript
语言
2015-02-14
创建时间
2026-10-21
最近更新

项目能做什么

轻量简约的 HTML5、YouTube 和 Vimeo 播放器(项目已停更,仅维护安全更新)。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Plyr

> [!IMPORTANT]
> **Plyr, meet Video.js 👋**
>
> The folks behind Plyr, Vidstack and Media Chrome have joined forces to build the latest version of Video.js: one modern, accessible player with the best of all three. Plyr is now deprecated and receives security updates only. Use Video.js 10 for new projects.
>
> **[Try Video.js →](https://videojs.org?utm_source=plyr)** · **[Migrate from Plyr →](https://videojs.org/docs/framework/html/guides/migrate-from-plyr?utm_source=plyr)**
>
> Using React? Follow the [React migration guide](https://videojs.org/docs/framework/react/guides/migrate-from-plyr?utm_source=plyr) instead. AI coding agents can install the [Video.js skill](https://github.com/videojs/skills) or run `npx @videojs/cli agents init` for version-matched Video.js 10 docs.

Plyr is a simple, lightweight, accessible and customizable HTML5, YouTube and Vimeo media player that supports [_modern_](#browser-support) browsers.

Need video hosting? [Check out Mux!](https://mux.com?ref=plyr-github)

[![npm version](https://badge.fury.io/js/plyr.svg)](https://badge.fury.io/js/plyr) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/sampotts/plyr) [![Financial Contributors on Open Collective](https://opencollective.com/plyr/all/badge.svg?label=financial+contributors)](https://opencollective.com/plyr)

![Screenshot of Plyr](https://cdn.plyr.io/static/screenshot.webp)

## Features

- 📼 **HTML Video & Audio, YouTube & Vimeo** - support for the major formats
- 💪 **Accessible** - full support for VTT captions and screen readers
- 🔧 **[Customizable](#html)** - make the player look how you want with the markup you want
- 😎 **Clean HTML** - uses the _right_ elements. `<input type="range">` for volume and `<progress>` for progress and well, `<button>`s for buttons. There's no
  `<span>` or `<a href="#">` button hacks
- 📱 **Responsive** - works with any screen size
- 💵 **[Monetization](#ads)** - make money from your videos
- 📹 **[Streaming](#demos)** - support for hls.js, Shaka and dash.js streaming playback
- 🎛 **[API](#api)** - toggle playback, volume, seeking, and more through a standardized API
- 🎤 **[Events](#events)** - no messing around with Vimeo and YouTube APIs, all events are standardized across formats
- 🔎 **[Fullscreen](#fullscreen)** - supports native fullscreen with fallback to "full window" modes
- ⌨️ **[Shortcuts](#shortcuts)** - supports keyboard shortcuts
- 🖥 **Picture-in-Picture** - supports picture-in-picture mode
- 📱 **Playsinline** - supports the `playsinline` attribute
- 🏎 **Speed controls** - adjust speed on the fly
- 📖 **Multiple captions** - support for multiple caption tracks
- 🌎 **i18n support** - support for internationalization of controls
- 👌 **[Preview thumbnails](#preview-thumbnails)** - support for displaying preview thumbnails
- 🤟 **No frameworks** - written in "vanilla" ES6 JavaScript, no jQuery required
- 💁‍♀️ **Sass** - to include in your
阅读完整原文

商业机会分析 AI 生成

Plyr 遗留系统平滑迁移辅助工具与兼容层 (Plyr-to-Video.js Bridge)

产品构想官方已宣布弃用并推荐 Video.js 10。构建一个轻量级兼容层或迁移 Codemod 工具,让存量使用 Plyr API 的项目无需重写前端即可无缝桥接到 Video.js 10 或 Vidstack。
核心功能Plyr API 适配器(向后兼容 plyr.play/on 等方法)、自动化迁移 AST 转换脚本、差异告警报告、迁移顾问支持。
目标用户拥有庞大存量 Plyr 业务代码、缺乏预算全面重构的前端团队与企业。
难度/周期中等 · 2-4周 · 成本:极低(主要是开发时间与文档编写)
收费模式核心兼容适配层开源,高级自动化迁移工具 CLI 收费,或提供按次付费的代码迁移咨询服务。
竞争风险官方已提供 React/HTML 基础迁移文档,单纯文档替代价值有限,必须依靠高度自动化的工具提供溢出价值。
依据 已验证事实

无代码视频播放器增强与分析嵌入式 SaaS

产品构想针对不愿被复杂播放器框架困扰的创作者/营销团队,提供开箱即用、基于现代播放器内核但保留 Plyr 式极简 UI 的云端播放器托管与数据分析服务。
核心功能极简播放器主题编辑器、用户观看留存与热图分析、CTA(行动号召)弹窗与表单搜集、支持 YouTube/Vimeo/直链视频托管。
目标用户在线教育讲师、营销落地页开发者、Notion/Webflow/WordPress 站长。
难度/周期较高 · 2-3个月 · 成本:中等(需音视频CDN、云存储及埋点服务器成本)
收费模式SaaS 订阅制(按视频播放次数、收集线索数量及自定义品牌分级收费)。
竞争风险市面上已有 Wistia、Vidalytics 等成熟竞品,个人开发者获客成本高。
依据 尚需验证的假设

Plyr LTS 商业技术支持与定制插件套件

产品构想官方仅承诺安全更新(Security updates only)。为无法升级到 Video.js 10 的企业提供非官方 LTS 商业支持,包括浏览器新特性兼容、高级加密播放(DRM/HLS 清流防盗)、广告聚合插件。
核心功能长期缺陷修复保证、高级 VAST/VMAP 广告模块、水印与防录屏组件、HLS/DASH 性能优化补丁包。
目标用户已稳定运行数年且不打算推倒重来的音视频网站、企业内训平台。
难度/周期中等 · 1-2个月 · 成本:极低(按需提供工程服务与补丁交付)
收费模式企业年度支持订阅(LTS License)或单次定制功能交付。
竞争风险Plyr 已经完全开源且弃用,企业更倾向于听从官方建议迁移而非长期为旧库付费。
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
ageron/handson-ml2 中文介绍暂未生成
⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 or
29,944 Jupyter Notebook
Homebrew/legacy-homebrew 中文介绍暂未生成
💀 The former home of Homebrew/homebrew (deprecated)
26,798 -
ageron/handson-ml 中文介绍暂未生成
⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 or
25,610 Jupyter Notebook
google/ExoPlayer 中文介绍暂未生成
This project is deprecated and stale. The latest ExoPlayer c
21,931 Java
harvesthq/chosen 中文介绍暂未生成
Deprecated - Chosen is a library for making long, unwieldy s
21,917 HTML
prisma/prisma1 中文介绍暂未生成
💾 Database Tools incl. ORM, Migrations and Admin UI (Postgre
16,368 Scala
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2015-02-14,近 30 天仍在推送,发布过 94 个 Release
社区活跃Star 29,988 / Fork 3,100 / Issue 1(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/sampotts/plyr.git
cd plyr
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。