Skip to content

Commit 6f2230c

Browse files
committed
feat: app-plyr add custom controls
1 parent d4f671c commit 6f2230c

File tree

10 files changed

+1057
-524
lines changed

10 files changed

+1057
-524
lines changed

packages/app-plyr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netless/app-plyr",
3-
"version": "0.2.6-beta.7",
3+
"version": "0.2.6",
44
"description": "Netless App Media Player, based on plyr.io.",
55
"repository": "netless-io/netless-app",
66
"license": "MIT",

packages/app-plyr/playground.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,32 @@ const options: PlaygroundConfigs<Attributes> = [
77
kind: "Plyr",
88
src: () => import("./src"),
99
options: {
10-
title: "MP4",
10+
title: "MP4111",
1111
},
1212
attributes: {
1313
src: "https://flat-storage.oss-accelerate.aliyuncs.com/cloud-storage/2022-03/28/e35a6676-aa5d-4a61-8f17-87e626b7d1b7/e35a6676-aa5d-4a61-8f17-87e626b7d1b7.mp4",
1414
type: "video/mp4",
1515
useNewPlayer: true,
1616
paused: false,
17-
// syncVolume: false,
18-
// syncMuted: false,
17+
syncVolume: false,
18+
syncMuted: false,
19+
},
20+
},
21+
{
22+
kind: "Plyr",
23+
src: () => import("./src"),
24+
options: {
25+
title: "MP4",
26+
},
27+
attributes: {
28+
src: "https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4",
29+
type: "video/mp4",
30+
useNewPlayer: true,
31+
paused: false,
32+
syncVolume: false,
33+
syncMuted: false,
34+
useCustomControls: true,
35+
customControlsTitle: "自定义标题",
1936
},
2037
},
2138
{

packages/app-plyr/src/ObserverSet.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)