yootd 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,309 @@
1
+ .yot-video-player {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+
6
+ &-container {
7
+ width: 100%;
8
+ height: 100%;
9
+ position: relative;
10
+ overflow: hidden;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ flex-shrink: 0;
15
+
16
+ &:hover & {
17
+ &__progress {
18
+ visibility: visible;
19
+ }
20
+
21
+ &__controls-bottom-progress__bar {
22
+ visibility: hidden;
23
+ }
24
+ }
25
+
26
+ &__video {
27
+ width: 100%;
28
+ height: 100%;
29
+ object-fit: fill;
30
+ }
31
+
32
+ &__controls {
33
+ position: absolute;
34
+ left: 0;
35
+ bottom: 0;
36
+ width: 100%;
37
+ height: 55px;
38
+ display: flex;
39
+ flex-direction: column;
40
+ justify-content: flex-end;
41
+ z-index: 10;
42
+ }
43
+
44
+ &__mask {
45
+ width: 100%;
46
+ height: 100px;
47
+ background-repeat: repeat-x;
48
+ background-position: bottom;
49
+ position: absolute;
50
+ left: 0;
51
+ bottom: 0;
52
+ }
53
+
54
+ &__progress {
55
+ height: 16px;
56
+ padding: 6px 0px;
57
+ margin: 0px 6px;
58
+ overflow: hidden;
59
+ position: relative;
60
+ box-sizing: border-box;
61
+ cursor: pointer;
62
+ visibility: hidden;
63
+ }
64
+
65
+ &__progress-bar {
66
+ width: 100%;
67
+ height: 3px;
68
+ background-color: #e1e1e133;
69
+ position: absolute;
70
+ }
71
+
72
+ &__controls-content {
73
+ width: 100%;
74
+ height: 100%;
75
+ display: flex;
76
+ align-items: center;
77
+ box-sizing: border-box;
78
+ padding: 0px 6px;
79
+ user-select: none;
80
+ position: relative;
81
+ z-index: 10;
82
+ }
83
+
84
+ &__controls-icon {
85
+ width: 16px;
86
+ height: 16px;
87
+ cursor: pointer;
88
+ margin-right: 20px;
89
+ }
90
+
91
+ &__controls-text {
92
+ margin-right: 20px;
93
+ font-size: 12px;
94
+ white-space: nowrap;
95
+ }
96
+
97
+ &__controls-speed {
98
+ margin-left: auto;
99
+ margin-right: 20px;
100
+ font-size: 12px;
101
+ cursor: pointer;
102
+ white-space: nowrap;
103
+ position: relative;
104
+
105
+ &--disabled {
106
+ pointer-events: none;
107
+ color: gray;
108
+ }
109
+ }
110
+
111
+ &__controls-speed-picker-container {
112
+ position: absolute;
113
+ left: 50%;
114
+ bottom: 24px;
115
+ width: 70px;
116
+ margin-left: -35px;
117
+ border-radius: 4px;
118
+ }
119
+
120
+ &__controls-speeds {
121
+ height: 36px;
122
+ display: flex;
123
+ justify-content: center;
124
+ align-items: center;
125
+ color: white;
126
+
127
+ &--selected {
128
+ color: #00aeec;
129
+ }
130
+ }
131
+
132
+ &__controls-volume {
133
+ position: relative;
134
+ margin-right: 20px;
135
+ display: flex;
136
+ align-items: center;
137
+
138
+ &__icon {
139
+ width: 16px;
140
+ height: 16px;
141
+ cursor: pointer;
142
+
143
+ &--disabled {
144
+ pointer-events: none;
145
+ }
146
+ }
147
+
148
+ &__slider {
149
+ position: absolute;
150
+ left: 50%;
151
+ bottom: 24px;
152
+ width: 30px;
153
+ height: 100px;
154
+ margin-left: -15px;
155
+ padding-bottom: 5px;
156
+ display: flex;
157
+ flex-direction: column;
158
+ align-items: center;
159
+ overflow: hidden;
160
+ background-color: rgba(0, 0, 0, 0.8);
161
+ color: white;
162
+
163
+ &__number {
164
+ height: 48px;
165
+ display: flex;
166
+ justify-content: center;
167
+ align-items: center;
168
+
169
+ &__text {
170
+ font-size: 12px;
171
+ }
172
+ }
173
+
174
+ &__progress-bar {
175
+ display: flex;
176
+ flex: 1;
177
+ position: relative;
178
+ flex-direction: column;
179
+ align-items: center;
180
+ padding-bottom: 4px;
181
+
182
+ &__line {
183
+ background-color: white;
184
+ width: 4px;
185
+ height: 100%;
186
+ border-radius: 4px;
187
+ position: relative;
188
+ overflow: hidden;
189
+
190
+ &__button-1 {
191
+ position: absolute;
192
+ width: 4px;
193
+ height: 100%;
194
+ background-color: #00aeec;
195
+ }
196
+ }
197
+
198
+ &__button-2 {
199
+ position: absolute;
200
+ width: 10px;
201
+ height: 10px;
202
+ border-radius: 50%;
203
+ background-color: #00aeec;
204
+ }
205
+ }
206
+ }
207
+ }
208
+
209
+ &__controls-capture {
210
+ position: relative;
211
+ margin-right: 20px;
212
+ display: flex;
213
+ align-items: center;
214
+
215
+ svg {
216
+ width: 16px;
217
+ height: 16px;
218
+ cursor: pointer;
219
+ }
220
+ }
221
+
222
+ &__controls-setting {
223
+ position: relative;
224
+ margin-right: 20px;
225
+ display: flex;
226
+ align-items: center;
227
+
228
+ svg {
229
+ width: 16px;
230
+ height: 16px;
231
+ cursor: pointer;
232
+ }
233
+
234
+ &__panel {
235
+ background-color: rgba(0, 0, 0, 0.8);
236
+ width: 96px;
237
+ left: 50%;
238
+ margin-left: -48px;
239
+ margin-bottom: 24px;
240
+ bottom: 0;
241
+ position: absolute;
242
+ font-size: 12px;
243
+ padding: 0 12px;
244
+ border-radius: 4px;
245
+
246
+ &__item {
247
+ color: white;
248
+ width: 100%;
249
+ height: 40px;
250
+ display: flex;
251
+ align-items: center;
252
+
253
+ &__checkbox {
254
+ margin-left: 8px;
255
+ cursor: pointer;
256
+ }
257
+ }
258
+ }
259
+ }
260
+
261
+ &__controls-full-screen {
262
+ width: 16px;
263
+ height: 16px;
264
+ cursor: pointer;
265
+ }
266
+
267
+ &__controls-bottom-progress {
268
+ &__bar {
269
+ position: relative;
270
+ left: 0px;
271
+ bottom: 0px;
272
+ width: 100%;
273
+ height: 2px;
274
+ z-index: 10;
275
+
276
+ &__item-1 {
277
+ width: 100%;
278
+ height: 100%;
279
+ background-color: #e1e1e133;
280
+ position: absolute;
281
+ }
282
+
283
+ &__item-2 {
284
+ position: absolute;
285
+ height: 100%;
286
+ background-color: #e1e1e14d;
287
+ }
288
+
289
+ &__item-3 {
290
+ height: 100%;
291
+ background-color: #00aeec;
292
+ position: absolute;
293
+ }
294
+ }
295
+ }
296
+
297
+ &__canvas {
298
+ position: absolute;
299
+ transform-origin: center;
300
+ }
301
+ }
302
+
303
+ &--full-screened {
304
+ transform: rotate(90deg);
305
+ transform-origin: center;
306
+ width: 100vh !important;
307
+ height: 100vw !important;
308
+ }
309
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -44,6 +44,7 @@
44
44
  "prettier --parser=typescript --write"
45
45
  ]
46
46
  },
47
+ "dependencies": {},
47
48
  "devDependencies": {
48
49
  "@commitlint/cli": "^17.1.2",
49
50
  "@commitlint/config-conventional": "^17.1.0",
@@ -56,6 +57,7 @@
56
57
  "@types/react": "^18.0.0",
57
58
  "@types/react-dom": "^18.0.0",
58
59
  "@umijs/lint": "^4.0.0",
60
+ "@vladmandic/face-api": "^1.7.14",
59
61
  "antd": "^5.21.4",
60
62
  "axios": "^1.7.7",
61
63
  "dayjs": "^1.11.13",
@@ -73,7 +75,8 @@
73
75
  "react": "^18.0.0",
74
76
  "react-dom": "^18.0.0",
75
77
  "sass": "^1.80.0",
76
- "stylelint": "^14.9.1"
78
+ "stylelint": "^14.9.1",
79
+ "yootd-webrtc-sdk": "^1.0.1"
77
80
  },
78
81
  "peerDependencies": {
79
82
  "@dnd-kit/core": ">=6.1.0",
@@ -81,6 +84,7 @@
81
84
  "@dnd-kit/sortable": ">=8.0.0",
82
85
  "@dnd-kit/utilities": ">=3.2.2",
83
86
  "@tanstack/react-query": ">=5.59.15",
87
+ "@vladmandic/face-api": "^1.7.14",
84
88
  "@xyflow/react": ">=12.3.3",
85
89
  "antd": ">=5.21.4",
86
90
  "axios": ">=1.7.7",
@@ -88,7 +92,8 @@
88
92
  "lodash": ">=4.17.21",
89
93
  "nanoid": ">=5.0.8",
90
94
  "react": ">=16.9.0",
91
- "react-dom": ">=16.9.0"
95
+ "react-dom": ">=16.9.0",
96
+ "yootd-webrtc-sdk": "^1.0.1"
92
97
  },
93
98
  "publishConfig": {
94
99
  "access": "public"