Skip to content

Commit a3670b7

Browse files
committed
添加了屬性 showthumb,允許用戶自訂是否顯示滑桿。
1 parent 8a09e91 commit a3670b7

15 files changed

+13
-6
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,18 @@
4343
// 若未指定,需手動將 dom.body 加入至視圖中
4444
// id: "元件 ID",
4545
46+
4647
// 必填:媒體來源設定,以下選項中僅能選擇一項
4748
video: "[影片位置]",
4849
// audio: "[音訊位置]",
4950
// vimeo: "[Vimeo ID]",
5051
// youtube: "[YouTube ID]"
5152
5253
// 選填:播放設置
53-
option: {
54+
option: {
55+
// 是否顯示滑桿,預設 true
56+
showThumb: true,
57+
5458
// 控制面板外觀風格,例如 "minimal""classic"
5559
panelType: "[風格選擇]",
5660

dist/PDPlayerKit.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/PDPlayerKit.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/PDPlayerKit.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ <h2>輕鬆嵌入到個人網站</h2>
9797

9898
// 選填:播放設置
9999
option: {
100+
// 是否顯示滑桿,預設 true
101+
showThumb: true,
102+
100103
// 控制面板外觀風格,例如 "minimal" 或 "classic"
101104
panelType: "[風格選擇]",
102105

@@ -438,7 +441,7 @@ <h2>音源播放支援</h2>
438441
rendered: _ => {
439442
const dom = new PDPlayer({
440443
id: "header-video",
441-
video: "https://cdn.pixabay.com/video/2024/06/02/214940_tiny.mp4"
444+
video: "https://cdn.pixabay.com/video/2024/06/02/214940_tiny.mp4",
442445
});
443446

444447
document.getElementById("demo-style").children[1].click()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pdplayerkit",
3-
"version": "2.1.1",
3+
"version": "2.2.0",
44
"description": "PDPlayerKit is a lightweight JavaScript library that provides embedded HTML5 video players and YouTube players, featuring highly customizable control panels and visual effects.",
55
"main": "dist/PDPlayerKit.js",
66
"scripts": {

src/js/*.js

42 Bytes
Binary file not shown.

src/js/model/player.js

260 Bytes
Binary file not shown.

src/js/model/playerPanel.js

728 Bytes
Binary file not shown.

src/scss/PDPlayerKit.scss

-9.47 KB
Binary file not shown.

src/scss/_panel.scss

4.08 KB
Binary file not shown.

src/scss/panelType/_classic.scss

1.47 KB
Binary file not shown.

src/scss/panelType/_minimal.scss

993 Bytes
Binary file not shown.

src/scss/panelType/_retro.scss

2.6 KB
Binary file not shown.

src/scss/panelType/_simple.scss

1.65 KB
Binary file not shown.

0 commit comments

Comments
 (0)