Browse Source

add .npmignore, dist

hk 4 years ago
parent
commit
e062e5da64
4 changed files with 4273 additions and 1 deletions
  1. 0
    1
      .gitignore
  2. 5
    0
      .npmignore
  3. 3895
    0
      dist/index.js
  4. 373
    0
      dist/styles.css

+ 0
- 1
.gitignore View File

@@ -1,4 +1,3 @@
1 1
 node_modules
2 2
 npm-debug.log
3 3
 .DS_Store
4
-dist

+ 5
- 0
.npmignore View File

@@ -0,0 +1,5 @@
1
+node_modules
2
+npm-debug.log
3
+.DS_Store
4
+demo
5
+scripts

+ 3895
- 0
dist/index.js
File diff suppressed because it is too large
View File


+ 373
- 0
dist/styles.css View File

@@ -0,0 +1,373 @@
1
+.rh5v-DefaultPlayer_component {
2
+    position: relative;
3
+    font-family: Helvetica;
4
+    font-size: 11px;
5
+    background-color: #000;
6
+    width: 100%;
7
+}
8
+
9
+.rh5v-DefaultPlayer_video {
10
+    width: 100%;
11
+    height: 100%;
12
+}
13
+
14
+.rh5v-DefaultPlayer_controls {
15
+    position: absolute;
16
+    bottom: 0;
17
+    right: 0;
18
+    left: 0;
19
+    height: 34px;
20
+    display: block;
21
+    background-color: rgba(0, 0, 0, 0.7);
22
+    opacity: 0;
23
+    transition: opacity 0.2s;
24
+}
25
+
26
+.rh5v-DefaultPlayer_seek {
27
+    -ms-flex-positive: 1;
28
+        flex-grow: 1;
29
+}
30
+
31
+.rh5v-DefaultPlayer_component:hover .rh5v-DefaultPlayer_controls {
32
+    opacity: 1;
33
+}.rh5v-Time_component {
34
+    padding: 0 10px 0 10px;
35
+    line-height: 35px;
36
+    color: #fff;
37
+    float: right;
38
+}
39
+
40
+.rh5v-Time_current {
41
+    margin-right: 5px;
42
+}
43
+
44
+.rh5v-Time_duration {
45
+    margin-left: 5px;
46
+    color: #919191;
47
+}
48
+.rh5v-Seek_component {
49
+    position: absolute;
50
+    left: 34px;
51
+    height: 34px;
52
+    right: 178px;
53
+}
54
+
55
+.rh5v-Seek_track {
56
+    position: absolute;
57
+    top: 50%;
58
+    left: 5px;
59
+    right: 5px;
60
+    height: 4px;
61
+    -ms-transform: translateY(-50%);
62
+        transform: translateY(-50%);
63
+    background-color: #3e3e3e;
64
+}
65
+
66
+.rh5v-Seek_buffer,
67
+.rh5v-Seek_fill,
68
+.rh5v-Seek_input {
69
+    position: absolute;
70
+    top: 0;
71
+    left: 0;
72
+    height: 100%;
73
+}
74
+
75
+.rh5v-Seek_buffer {
76
+    background-color: #5a5a5a;
77
+}
78
+
79
+.rh5v-Seek_fill {
80
+    background: #fff;
81
+}
82
+
83
+.rh5v-Seek_input {
84
+    width: 100%;
85
+    opacity: 0;
86
+    cursor: pointer;
87
+}
88
+.rh5v-Volume_component {
89
+    position: relative;
90
+    float: right;
91
+    height: 34px;
92
+}
93
+
94
+.rh5v-Volume_component:hover {
95
+    background-color: #000;
96
+}
97
+
98
+.rh5v-Volume_button {
99
+    width: 34px;
100
+    height: 34px;
101
+    background: none;
102
+    border: 0;
103
+    color: inherit;
104
+    font: inherit;
105
+    line-height: normal;
106
+    overflow: visible;
107
+    padding: 0;
108
+    cursor: pointer;
109
+}
110
+
111
+.rh5v-Volume_button:focus {
112
+    outline: 0;
113
+}
114
+
115
+.rh5v-Volume_icon {
116
+    padding: 7px;
117
+}
118
+
119
+.rh5v-Volume_slider {
120
+    display: none;
121
+    position: absolute;
122
+    right: 5px;
123
+    bottom: 100%;
124
+    left: 5px;
125
+    height: 56px;
126
+    background-color: #000;
127
+}
128
+
129
+.rh5v-Volume_component:hover .rh5v-Volume_slider {
130
+    display: block;
131
+}
132
+
133
+.rh5v-Volume_track {
134
+    position: absolute;
135
+    top: 8px;
136
+    bottom: 8px;
137
+    left: 50%;
138
+    width: 4px;
139
+    -ms-transform: translateX(-50%);
140
+        transform: translateX(-50%);
141
+    background-color: #3e3e3e;
142
+}
143
+
144
+.rh5v-Volume_fill, .rh5v-Volume_input {
145
+    position: absolute;
146
+    right: 0;
147
+    bottom: 0;
148
+    left: 0;
149
+    height: 100%;
150
+    width: 100%;
151
+}
152
+
153
+.rh5v-Volume_fill {
154
+    background-color: #fff;
155
+}
156
+
157
+.rh5v-Volume_input {
158
+    padding: 0;
159
+    margin: 0;
160
+    opacity: 0;
161
+    -webkit-appearance: slider-vertical;
162
+    cursor: pointer;
163
+}.rh5v-Captions_component {
164
+    position: relative;
165
+}
166
+
167
+.rh5v-Captions_component:hover {
168
+    background-color: #000;
169
+}
170
+
171
+.rh5v-Captions_button {
172
+    width: 34px;
173
+    height: 34px;
174
+    background: none;
175
+    border: 0;
176
+    color: inherit;
177
+    font: inherit;
178
+    line-height: normal;
179
+    overflow: visible;
180
+    padding: 0;
181
+    cursor: pointer;
182
+}
183
+
184
+.rh5v-Captions_button:focus {
185
+    outline: 0;
186
+}
187
+
188
+.rh5v-Captions_icon {
189
+    padding: 5px;
190
+}
191
+
192
+.rh5v-Captions_trackList {
193
+    position: absolute;
194
+    right: 0;
195
+    bottom: 100%;
196
+    display: none;
197
+    background-color: rgba(0,0,0,0.7);
198
+    list-style: none;
199
+    padding: 0;
200
+    margin: 0;
201
+    color: #fff;
202
+}
203
+
204
+.rh5v-Captions_component:hover .rh5v-Captions_trackList {
205
+    display: block;
206
+}
207
+
208
+.rh5v-Captions_trackItem {
209
+    padding: 7px;
210
+    cursor: pointer;
211
+}
212
+
213
+.rh5v-Captions_activeTrackItem,
214
+.rh5v-Captions_trackItem:hover {
215
+    background: #000;
216
+}
217
+
218
+.rh5v-Captions_activeTrackItem {
219
+    text-decoration: underline;
220
+}
221
+.rh5v-Speed_component {
222
+    position: relative;
223
+    float: right;
224
+    height: 34px;
225
+}
226
+
227
+.rh5v-Speed_component:hover {
228
+    background-color: #000;
229
+}
230
+
231
+.rh5v-Speed_button {
232
+    width: 34px;
233
+    height: 34px;
234
+    background: none;
235
+    border: 0;
236
+    color: inherit;
237
+    font: inherit;
238
+    line-height: normal;
239
+    overflow: visible;
240
+    padding: 0;
241
+    cursor: pointer;
242
+}
243
+
244
+.rh5v-Speed_button:focus {
245
+    outline: 0;
246
+}
247
+
248
+.rh5v-Speed_icon {
249
+    padding: 5px;
250
+}
251
+
252
+.rh5v-Speed_speedList {
253
+    position: absolute;
254
+    bottom: 100%;
255
+    display: none;
256
+    background-color: rgba(0, 0, 0, 0.7);
257
+    list-style: none;
258
+    padding: 0;
259
+    margin: 0;
260
+    color: #fff;
261
+}
262
+
263
+.rh5v-Speed_component:hover .rh5v-Speed_speedList {
264
+    display: block;
265
+}
266
+
267
+.rh5v-Speed_speedItem {
268
+    padding: 7px;
269
+    cursor: pointer;
270
+}
271
+
272
+.rh5v-Speed_activeSpeedItem, .rh5v-Speed_speedItem:hover {
273
+    background: #000;
274
+}
275
+
276
+.rh5v-Speed_activeSpeedItem {
277
+    text-decoration: underline;
278
+}.rh5v-PlayPause_component {
279
+    float: left;
280
+    height: 34px;
281
+}
282
+
283
+
284
+.rh5v-PlayPause_component:hover {
285
+    background-color: #000;
286
+}
287
+
288
+.rh5v-PlayPause_button {
289
+    width: 34px;
290
+    height: 34px;
291
+    background: none;
292
+    border: 0;
293
+    color: inherit;
294
+    font: inherit;
295
+    line-height: normal;
296
+    overflow: visible;
297
+    padding: 0;
298
+    cursor: pointer;
299
+}
300
+
301
+.rh5v-PlayPause_button:focus {
302
+    outline: 0;
303
+}
304
+
305
+.rh5v-PlayPause_icon {
306
+    padding: 5px;
307
+}
308
+.rh5v-Fullscreen_component {
309
+    float: right;
310
+    height: 34px;
311
+}
312
+
313
+.rh5v-Fullscreen_component:hover {
314
+    background-color: #000;
315
+}
316
+
317
+.rh5v-Fullscreen_button {
318
+    width: 34px;
319
+    height: 34px;
320
+    background: none;
321
+    border: 0;
322
+    color: inherit;
323
+    font: inherit;
324
+    line-height: normal;
325
+    overflow: visible;
326
+    padding: 0;
327
+    cursor: pointer;
328
+}
329
+
330
+.rh5v-Fullscreen_button:focus {
331
+    outline: 0;
332
+}
333
+
334
+.rh5v-Fullscreen_icon {
335
+    padding: 5px;
336
+}.rh5v-Overlay_component {
337
+    position: absolute;
338
+    top: 0;
339
+    right: 0;
340
+    bottom: 0;
341
+    left: 0;
342
+    height: 100%;
343
+    width: 100%;
344
+    color: #fff;
345
+    text-align: center;
346
+    cursor: pointer;
347
+    background-color: rgba(0,0,0,0);
348
+}
349
+
350
+.rh5v-Overlay_inner {
351
+    display: inline-block;
352
+    position: absolute;
353
+    top: 50%;
354
+    right: 0;
355
+    left: 50%;
356
+    width: 60px;
357
+    height: 60px;
358
+    -ms-transform: translateY(-50%);
359
+        transform: translateY(-50%);
360
+    margin-left: -30px;
361
+    background-color: rgba(0,0,0,0.7);
362
+    border-radius: 10px;
363
+}
364
+
365
+.rh5v-Overlay_icon {
366
+    position: absolute;
367
+    top: 50%;
368
+    right: 0;
369
+    left: 50%;
370
+    margin-left: -20px;
371
+    -ms-transform: translateY(-50%);
372
+        transform: translateY(-50%);
373
+}