Skip to content

Commit

Permalink
202407271806
Browse files Browse the repository at this point in the history
  • Loading branch information
Remote committed Jul 27, 2024
1 parent cbd6f37 commit 50b950e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 10 deletions.
18 changes: 18 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 忽略 VSCode 的工作台設定檔案
*.code-workspace

# 忽略 macOS 系統自動生成的 .DS_Store 檔案與資料夾圖標
.DS_Store
Icon?

# 忽略 git 相關
.git
.git-crypt
.gitattributes
.gitignore

# 忽略源碼
src/

# 忽略其他
reset.sh
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# PDPlayerKit (JavaScript Library)

> PDPlayerKit 是一個輕量級的 JavaScript 播放器 JavaScript 庫,提供嵌入式的 HTML5 影片播放器和 YouTube 播放器,具備高度自定義的控制面板和視覺效果。
> PDPlayerKit is a lightweight JavaScript library that provides embedded HTML5 video players and YouTube players, featuring highly customizable control panels and visual effects.
![](https://img.shields.io/github/v/release/pardnchiu/PDPlayerKit?color=red) ![](https://img.shields.io/github/size/pardnchiu/PDPlayerKit/dist%2FPDPlayerKit.js?color=green) ![](https://img.shields.io/github/license/pardnchiu/PDPlayerKit?color=blue) ![](https://img.shields.io/badge/creator-Pardn%20Chiu%20邱敬幃-A374BF)

## 特點 / Feature

- 支持 Youtube 與一般影片連結使用。<br>
Support for YouTube and general video links.
- 支援 HTML5 視頻和 YouTube 視頻播放,<br>
Supports HTML5 video and YouTube video playback.

- 提供播放、暫停、音量調整等影片操作功能。<br>
Provides video controls such as play, pause, and volume adjustment.
- 自定義控制面板,包括播放、暫停、音量控制、播放速率調整等功能。<br>
Customizable control panel, including play, pause, volume control, playback speed adjustment, and more.

- `playsinline` 的狀態也可真正適配 `fullscreen`。<br>
Fully compatible with `fullscreen` mode even in `playsinline` state.
- 支援行動裝置 `playsinline` 的狀態下支援全螢幕播放。<br>
Supports fullscreen playback on mobile devices when `playsinline` is enabled.

- 使用純 JavaScript / CSS 開發。<br>
Built using pure JavaScript and CSS.
Expand Down
27 changes: 23 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
{
"name": "PDPlayerKit",
"name": "pdplayerkit",
"version": "1.0.0",
"description": "",
"description": "PDPlayerKit is a lightweight JavaScript library that provides embedded HTML5 video players and YouTube players, featuring highly customizable control panels and visual effects.",
"main": "dist/PDPlayerKit.js",
"scripts": {
"minify": "npx terser src/PDPlayerKit.js -c -m -o dist/PDPlayerKit.js --config-file terser.config.json --name-cache terser.cache.json",
"minify-w": "chokidar 'src/PDPlayerKit.js' -c 'npm run minify'",
"sass": "sass sass/:css/ -w --style compressed --no-source-map"
},
"author": "",
"license": "GPL-3.0-only",
"files": [
"dist",
"static",
"index.html",
"interface.ts",
"LICENSE",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/pardnchiu/PDPlayerKit.git"
},
"keywords": [
"video-player",
"youtube-player",
"javascript-library"
],
"author": "Pardn Chiu",
"license": "GPL-3.0",
"bugs": {},
"homepage": "https://github.com/pardnchiu/PDPlayerKit#readme",
"devDependencies": {}
}

0 comments on commit 50b950e

Please sign in to comment.