video-react-new-new 0.18.0
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.
- package/CHANGELOG.md +425 -0
- package/LICENSE +21 -0
- package/README.md +97 -0
- package/package.json +153 -0
- package/styles/fonts/video-react.eot +0 -0
- package/styles/fonts/video-react.svg +43 -0
- package/styles/fonts/video-react.ttf +0 -0
- package/styles/fonts/video-react.woff +0 -0
- package/styles/icons.json +584 -0
- package/styles/scss/components/bezel.scss +119 -0
- package/styles/scss/components/big-play-button.scss +44 -0
- package/styles/scss/components/button.scss +18 -0
- package/styles/scss/components/closed-caption.scss +13 -0
- package/styles/scss/components/control-bar.scss +51 -0
- package/styles/scss/components/control.scss +42 -0
- package/styles/scss/components/fullscreen.scss +13 -0
- package/styles/scss/components/loading-spinner.scss +105 -0
- package/styles/scss/components/menu/menu-inline.scss +67 -0
- package/styles/scss/components/menu/menu-popup.scss +27 -0
- package/styles/scss/components/menu/menu.scss +59 -0
- package/styles/scss/components/play-pause.scss +11 -0
- package/styles/scss/components/playback-rate.scss +13 -0
- package/styles/scss/components/poster.scss +27 -0
- package/styles/scss/components/progress.scss +156 -0
- package/styles/scss/components/slider.scss +13 -0
- package/styles/scss/components/time.scss +18 -0
- package/styles/scss/components/volume.scss +147 -0
- package/styles/scss/icons.scss +238 -0
- package/styles/scss/layout.scss +107 -0
- package/styles/scss/mixins.scss +117 -0
- package/styles/scss/variables.scss +16 -0
- package/styles/scss/video-react-new.scss +25 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
<a name="0.16.0"></a>
|
|
2
|
+
# [0.16.0](https://github.com/video-react-new/video-react-new/compare/0.15.0...0.16.0) (2022-11-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<a name="0.14.1"></a>
|
|
7
|
+
## [0.14.1](https://github.com/video-react-new/video-react-new/compare/0.14.0...0.14.1) (2019-07-24)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* bad seek time on iOS safari ([19efac4](https://github.com/video-react-new/video-react-new/commit/19efac4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<a name="0.14.0"></a>
|
|
17
|
+
# [0.14.0](https://github.com/video-react-new/video-react-new/compare/0.13.9...0.14.0) (2019-06-21)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* New ClosedCaptionButton component ([6bea3a1](https://github.com/video-react-new/video-react-new/commit/6bea3a1))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<a name="0.13.9"></a>
|
|
27
|
+
## [0.13.9](https://github.com/video-react-new/video-react-new/compare/0.13.8...0.13.9) (2019-06-18)
|
|
28
|
+
|
|
29
|
+
* fullscreen events are no longer shared across players ([#285](https://github.com/video-react-new/video-react-new/issues/285)) ([986d844](https://github.com/video-react-new/video-react-new/commit/986d844))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<a name="0.13.8"></a>
|
|
34
|
+
## [0.13.8](https://github.com/video-react-new/video-react-new/compare/0.13.7...0.13.8) (2019-06-12)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* re-focus to root element when switching fullscreen ([#276](https://github.com/video-react-new/video-react-new/issues/276)) ([3e38a7f](https://github.com/video-react-new/video-react-new/commit/3e38a7f))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
<a name="0.13.7"></a>
|
|
44
|
+
## [0.13.7](https://github.com/video-react-new/video-react-new/compare/0.13.6...0.13.7) (2019-05-02)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* add tabindex to video tag to make it focusable in latest Chrome ([#262](https://github.com/video-react-new/video-react-new/issues/262)) ([01291c7](https://github.com/video-react-new/video-react-new/commit/01291c7))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* expose MenuButton ([ed835a2](https://github.com/video-react-new/video-react-new/commit/ed835a2))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<a name="0.13.6"></a>
|
|
59
|
+
## [0.13.6](https://github.com/video-react-new/video-react-new/compare/0.13.5...0.13.6) (2019-03-18)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* removed a dubious player state setting that caused LoadSpinner invisible problem ([363a659](https://github.com/video-react-new/video-react-new/commit/363a659))
|
|
65
|
+
* **Slider:** remove event listeners when component will unmount ([17baf50](https://github.com/video-react-new/video-react-new/commit/17baf50))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<a name="0.13.5"></a>
|
|
70
|
+
## [0.13.5](https://github.com/video-react-new/video-react-new/compare/0.13.4...0.13.5) (2019-03-13)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Bug Fixes
|
|
74
|
+
|
|
75
|
+
* add missing '@babel/runtime' dependencies ([7ff1036](https://github.com/video-react-new/video-react-new/commit/7ff1036))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<a name="0.13.4"></a>
|
|
80
|
+
## [0.13.4](https://github.com/video-react-new/video-react-new/compare/0.13.3...0.13.4) (2019-03-10)
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
* Customizable delay time for auto hide of ControlBar [#233](https://github.com/video-react-new/video-react-new/issues/233)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
|
|
89
|
+
* Missing commonjs support ([#235](https://github.com/video-react-new/video-react-new/issues/235))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
<a name="0.13.3"></a>
|
|
93
|
+
## [0.13.3](https://github.com/video-react-new/video-react-new/compare/0.13.2...0.13.3) (2019-03-02)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Bug Fixes
|
|
97
|
+
|
|
98
|
+
* fix `preload` prop in `Player` ([#230](https://github.com/video-react-new/video-react-new/issues/230))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<a name="0.13.2"></a>
|
|
103
|
+
## [0.13.2](https://github.com/video-react-new/video-react-new/compare/0.13.1...0.13.2) (2019-01-11)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Bug Fixes
|
|
107
|
+
|
|
108
|
+
* Fixed className propagation problem ([5a169cd](https://github.com/video-react-new/video-react-new/commit/5a169cd756bb10cd64f09f561157cb71588fbdaa)), closes [#186](https://github.com/video-react-new/video-react-new/issues/186)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
<a name="0.13.1"></a>
|
|
112
|
+
## [0.13.1](https://github.com/video-react-new/video-react-new/compare/0.13.0...0.13.1) (2018-10-29)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
<a name="0.13.0"></a>
|
|
117
|
+
## [0.13.0](https://github.com/video-react-new/video-react-new/compare/0.12.0...0.13.0) (2018-07-07)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<a name="0.12.0"></a>
|
|
122
|
+
## [0.12.0](https://github.com/video-react-new/video-react-new/compare/0.11.1...0.12.0) (2018-07-06)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Bug Fixes
|
|
126
|
+
|
|
127
|
+
* Build dist before build docs ([85a11dd](https://github.com/video-react-new/video-react-new/commit/85a11dd))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<a name="0.11.2"></a>
|
|
132
|
+
## [0.11.2](https://github.com/video-react-new/video-react-new/compare/0.11.1...0.11.2) (2018-06-07)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### Bug Fixes
|
|
136
|
+
|
|
137
|
+
* Build dist before build docs ([85a11dd](https://github.com/video-react-new/video-react-new/commit/85a11dd))
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<a name="0.11.1"></a>
|
|
142
|
+
## [0.11.1](https://github.com/video-react-new/video-react-new/compare/0.11.0...0.11.1) (2018-06-07)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Bug Fixes
|
|
146
|
+
|
|
147
|
+
* Fixed clickable issue ([9a9a218](https://github.com/video-react-new/video-react-new/commit/9a9a218))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<a name="0.11.0"></a>
|
|
152
|
+
# [0.11.0](https://github.com/video-react-new/video-react-new/compare/0.10.9...0.11.0) (2018-06-07)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Features
|
|
156
|
+
|
|
157
|
+
* Add property to disable click for shortcut [#101](https://github.com/video-react-new/video-react-new/issues/101) ([e29aee8](https://github.com/video-react-new/video-react-new/commit/e29aee8)), closes [#122](https://github.com/video-react-new/video-react-new/issues/122)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<a name="0.10.9"></a>
|
|
162
|
+
## [0.10.9](https://github.com/video-react-new/video-react-new/compare/0.10.8...0.10.9) (2018-05-23)
|
|
163
|
+
|
|
164
|
+
Hotfix for 0.10.8
|
|
165
|
+
|
|
166
|
+
<a name="0.10.8"></a>
|
|
167
|
+
## [0.10.8](https://github.com/video-react-new/video-react-new/compare/0.10.7...0.10.8) (2018-05-23)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
#117 Don't import scss in the js code
|
|
172
|
+
|
|
173
|
+
v0.10.7
|
|
174
|
+
#110 Allow to render tooltip with custom text by Sergo(@rogaldh)
|
|
175
|
+
|
|
176
|
+
<a name="0.10.5"></a>
|
|
177
|
+
## [0.10.5](https://github.com/video-react-new/video-react-new/compare/v0.10.4...v0.10.5) (2018-04-24)
|
|
178
|
+
|
|
179
|
+
#105 Fix classnames overridden by props in volume bar by (Jordan Belford)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<a name="0.10.4"></a>
|
|
183
|
+
## [0.10.4](https://github.com/video-react-new/video-react-new/compare/0.10.3...0.10.4) (2018-03-19)
|
|
184
|
+
|
|
185
|
+
- Fixed #99 Cannot read property 'paused' of undefined
|
|
186
|
+
|
|
187
|
+
<a name="0.10.3"></a>
|
|
188
|
+
## [0.10.3](https://github.com/video-react-new/video-react-new/compare/v0.10.2...v0.10.3) (2018-03-16)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<a name="0.10.2"></a>
|
|
193
|
+
## [0.10.2](https://github.com/video-react-new/video-react-new/compare/v0.10.1...v0.10.2) (2018-03-16)
|
|
194
|
+
|
|
195
|
+
Fixed #97: Uncaught ReferenceError: babelHelpers is not defined
|
|
196
|
+
|
|
197
|
+
<a name="0.10.1"></a>
|
|
198
|
+
## [0.10.1](https://github.com/video-react-new/video-react-new/compare/v0.9.4...v0.10.1) (2018-03-15)
|
|
199
|
+
|
|
200
|
+
- Merged PR #81 by Roy Art(@rart): Allow the hosting App to provide the store for the player to use
|
|
201
|
+
- Merged PR #92 by Chase Maier(@chasemaier): Add type="button" to prevent form submit
|
|
202
|
+
- Merged PR #85 by Anton Kulakov(@kulakowka): Fixed typo in Player.js
|
|
203
|
+
- Merged PR #64 by Mihail Smolin(@Soulfull): fix remove event listener
|
|
204
|
+
- Improvement: Ability to set element id #90
|
|
205
|
+
|
|
206
|
+
## 0.9.4
|
|
207
|
+
- Fixed Promise error #68
|
|
208
|
+
- Fixed Loading spinner issue
|
|
209
|
+
|
|
210
|
+
## 0.9.3
|
|
211
|
+
- Fixed #63: When Video Loading, LoadSpinner not visible, BigPlay is visible
|
|
212
|
+
|
|
213
|
+
## 0.9.2
|
|
214
|
+
- Fixed IE11 issue
|
|
215
|
+
- Fixed throttle issue
|
|
216
|
+
|
|
217
|
+
## 0.9.1
|
|
218
|
+
Fixed fonts path issue in css
|
|
219
|
+
## 0.9.0
|
|
220
|
+
- Using rollup to compile js
|
|
221
|
+
- Using nextjs to build doc site
|
|
222
|
+
- Fixed #60 - npm warnings with react v16
|
|
223
|
+
- Merged PR #64 - fix remove event listener
|
|
224
|
+
|
|
225
|
+
<a name="0.8.10"></a>
|
|
226
|
+
## [0.8.10](https://github.com/video-react-new/video-react-new/compare/v0.8.9...v0.8.10) (2017-11-16)
|
|
227
|
+
Fixed #54 unable to resolve redux module
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
<a name="0.8.9"></a>
|
|
231
|
+
## [0.8.9](https://github.com/video-react-new/video-react-new/compare/v0.8.8...v0.8.9) (2017-10-19)
|
|
232
|
+
|
|
233
|
+
Fixed #52 Uncaught DOMException user performs seek operations when the video state waiting is true
|
|
234
|
+
Do not pause while seeking
|
|
235
|
+
|
|
236
|
+
<a name="0.8.8"></a>
|
|
237
|
+
## [0.8.8](https://github.com/video-react-new/video-react-new/compare/v0.8.7...v0.8.8) (2017-09-08)
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
Fixed #49 video-react-new does not support IE
|
|
242
|
+
Fixed #48 ControlBar className from property doesnt appear
|
|
243
|
+
|
|
244
|
+
<a name="0.8.6"></a>
|
|
245
|
+
## [0.8.6](https://github.com/video-react-new/video-react-new/compare/v0.8.5...v0.8.6) (2017-07-22)
|
|
246
|
+
|
|
247
|
+
Fixed #41 BigPlayButton Arrests Keyboard
|
|
248
|
+
|
|
249
|
+
<a name="0.8.5"></a>
|
|
250
|
+
## [0.8.5](https://github.com/video-react-new/video-react-new/compare/v0.8.4...v0.8.5) (2017-06-08)
|
|
251
|
+
|
|
252
|
+
Add option to always show volume control #38 by Alex Koppel (@arsduo)
|
|
253
|
+
|
|
254
|
+
<a name="0.8.4"></a>
|
|
255
|
+
## [0.8.4](https://github.com/video-react-new/video-react-new/compare/v0.8.3...v0.8.4) (2017-06-06)
|
|
256
|
+
|
|
257
|
+
Add crossOrigin prop to Video PR#37 by Juan D.(@juandjara)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
<a name="0.8.3"></a>
|
|
261
|
+
## [0.8.3](https://github.com/video-react-new/video-react-new/compare/v0.8.2...v0.8.3) (2017-05-01)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
Add an example on how to add a download button component.
|
|
266
|
+
|
|
267
|
+
<a name="0.8.2"></a>
|
|
268
|
+
## [0.8.2](https://github.com/video-react-new/video-react-new/compare/v0.8.1...v0.8.2) (2017-04-24)
|
|
269
|
+
|
|
270
|
+
<a name="0.8.1"></a>
|
|
271
|
+
## [0.8.1](https://github.com/video-react-new/video-react-new/compare/v0.7.8...v0.8.1) (2017-04-24)
|
|
272
|
+
- Upgrade for React 15.5
|
|
273
|
+
- Add `className` property for components #22
|
|
274
|
+
- Add `style` node to `pakcage.json` #29
|
|
275
|
+
|
|
276
|
+
<a name="0.7.8"></a>
|
|
277
|
+
## [0.7.8](https://github.com/video-react-new/video-react-new/compare/v0.7.7...v0.7.8) (2017-04-17)
|
|
278
|
+
Fixed #29
|
|
279
|
+
|
|
280
|
+
<a name="0.7.7"></a>
|
|
281
|
+
## [0.7.7](https://github.com/video-react-new/video-react-new/compare/v0.7.6...v0.7.7) (2017-04-14)
|
|
282
|
+
Fixed Tests
|
|
283
|
+
|
|
284
|
+
<a name="0.7.6"></a>
|
|
285
|
+
## [0.7.6](https://github.com/video-react-new/video-react-new/compare/v0.7.5...v0.7.6) (2017-04-14)
|
|
286
|
+
Calling VideoReact from outside (HTML script tag)
|
|
287
|
+
|
|
288
|
+
<a name="0.7.5"></a>
|
|
289
|
+
## [0.7.5](https://github.com/video-react-new/video-react-new/compare/0.7.4...v0.7.5) (2017-04-11)
|
|
290
|
+
Fixed IE11 Issue by @yuheiy's help.
|
|
291
|
+
|
|
292
|
+
<a name="0.7.3"></a>
|
|
293
|
+
## [0.7.3](https://github.com/video-react-new/video-react-new/compare/0.7.2...v0.7.3) (2017-03-10)
|
|
294
|
+
NO CHANGES
|
|
295
|
+
Test travis-ci, use it to publish new release
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
<a name="0.7.2"></a>
|
|
299
|
+
# [0.7.2]
|
|
300
|
+
Fixed issue that the player can't handle blur event
|
|
301
|
+
|
|
302
|
+
<a name="0.7.0"></a>
|
|
303
|
+
# [0.7.0](https://github.com/video-react-new/video-react-new/compare/0.6.4...v0.7.0) (2017-02-20)
|
|
304
|
+
|
|
305
|
+
* Rewrited Menu component.
|
|
306
|
+
* Changed component name from `PlaybackRate` to `PlaybackRateMenuButton`.
|
|
307
|
+
* Fixed full screen bug on iPhone.
|
|
308
|
+
* Added travis-ci config
|
|
309
|
+
|
|
310
|
+
<a name="0.6.4"></a>
|
|
311
|
+
## [0.6.4](https://github.com/video-react-new/video-react-new/compare/0.6.3...v0.6.4) (2017-02-12)
|
|
312
|
+
|
|
313
|
+
Fixed issue #11 Make sure the children of Video can get video object
|
|
314
|
+
|
|
315
|
+
<a name="0.6.3"></a>
|
|
316
|
+
## [0.6.3](https://github.com/video-react-new/video-react-new/compare/0.6.2...v0.6.3) (2017-02-11)
|
|
317
|
+
|
|
318
|
+
Fixed issue #8 Spinner + Play Both Apear when no source
|
|
319
|
+
Merged #9 Display LoadingSpinner.js only if the player has started
|
|
320
|
+
Fixed tests
|
|
321
|
+
|
|
322
|
+
<a name="0.6.2"></a>
|
|
323
|
+
## [0.6.2](https://github.com/video-react-new/video-react-new/compare/0.6.1...v0.6.2) (2017-01-19)
|
|
324
|
+
|
|
325
|
+
Fixed issue #7. muted={false} not working
|
|
326
|
+
|
|
327
|
+
<a name="0.6.1"></a>
|
|
328
|
+
## [0.6.1](https://github.com/video-react-new/video-react-new/compare/0.5.1...v0.6.1) (2017-01-19)
|
|
329
|
+
|
|
330
|
+
- Add more methods to control the video for the `Player` component
|
|
331
|
+
- Add the `subscribeToStateChange` method to subscribe the state changes
|
|
332
|
+
- Update the document
|
|
333
|
+
- Add an example on how to control the player from outside.
|
|
334
|
+
|
|
335
|
+
<a name="0.5.1"></a>
|
|
336
|
+
## [0.5.1](https://github.com/video-react-new/video-react-new/compare/0.4.4...v0.5.1) (2016-12-02)
|
|
337
|
+
|
|
338
|
+
- New features:
|
|
339
|
+
- Support keyboard navigation
|
|
340
|
+
- Click video to play or pause
|
|
341
|
+
- Fixed the conflict of scss with other's
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<a name="0.4.4"></a>
|
|
345
|
+
## [0.4.4](https://github.com/video-react-new/video-react-new/compare/0.4.3...v0.4.4) (2016-11-29)
|
|
346
|
+
|
|
347
|
+
- Using base64 string for fonts in scss
|
|
348
|
+
|
|
349
|
+
<a name="0.4.3"></a>
|
|
350
|
+
## [0.4.3](https://github.com/video-react-new/video-react-new/compare/0.4.2...v0.4.3) (2016-11-24)
|
|
351
|
+
|
|
352
|
+
- Shortcut only works when the play has focus
|
|
353
|
+
- Using `isVideoChild` prop to check if an element belongs to the Video.
|
|
354
|
+
- Add documents for Customize
|
|
355
|
+
- Add an example on how to support HLS video source
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
<a name="0.4.2"></a>
|
|
359
|
+
## [0.4.2](https://github.com/video-react-new/video-react-new/compare/0.4.1...v0.4.2) (2016-11-24)
|
|
360
|
+
|
|
361
|
+
- Fixed source issue
|
|
362
|
+
- Move `redux` to peerDependencies
|
|
363
|
+
- Add `play()`, `pause()`, `load()`, `addTextTrack()`, `canPlayType()` methods to player.
|
|
364
|
+
- Add example for `Shortcut` component
|
|
365
|
+
- Add example for `Player`
|
|
366
|
+
|
|
367
|
+
<a name="0.4.1"></a>
|
|
368
|
+
## [0.4.1](https://github.com/video-react-new/video-react-new/compare/0.3.3...v0.4.1) (2016-11-23)
|
|
369
|
+
|
|
370
|
+
- Using redux to manage state
|
|
371
|
+
- Add `playsInline` property
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
<a name="0.3.3"></a>
|
|
375
|
+
## [0.3.3](https://github.com/video-react-new/video-react-new/compare/0.3.2...v0.3.3) (2016-11-21)
|
|
376
|
+
|
|
377
|
+
- Fixed VolumeMenu issue that it's vertical property did not work
|
|
378
|
+
- Added `autoPlay`, `startTime` properties for Player Component
|
|
379
|
+
|
|
380
|
+
<a name="0.3.2"></a>
|
|
381
|
+
## [0.3.2](https://github.com/video-react-new/video-react-new/compare/0.3.1...v0.3.2) (2016-11-19)
|
|
382
|
+
|
|
383
|
+
Fixed Issue #2: The mouse and control bar do not disappear when it's in fullscreen mode
|
|
384
|
+
|
|
385
|
+
<a name="0.3.1"></a>
|
|
386
|
+
## [0.3.1](https://github.com/video-react-new/video-react-new/compare/0.2.4...v0.3.1) (2016-11-18)
|
|
387
|
+
|
|
388
|
+
* Added keyboard shortcuts
|
|
389
|
+
* Display bezel icon for some keyboard operations
|
|
390
|
+
* Fixed some issues
|
|
391
|
+
* Remove supports for React v0.14
|
|
392
|
+
|
|
393
|
+
<a name="0.2.4"></a>
|
|
394
|
+
## [0.2.4](https://github.com/video-react-new/video-react-new/compare/0.2.3...v0.2.4) (2016-11-15)
|
|
395
|
+
|
|
396
|
+
* Filter children by `disabled` property.
|
|
397
|
+
* Inherit props from default component
|
|
398
|
+
* remove ninon from dependencies
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
<a name="0.2.1"></a>
|
|
402
|
+
## [0.2.1](https://github.com/video-react-new/video-react-new/compare/0.1.4...v0.2.1) (2016-11-13)
|
|
403
|
+
|
|
404
|
+
* New components:
|
|
405
|
+
- CurrentTimeDisplay
|
|
406
|
+
- DurationDisplay
|
|
407
|
+
- RemainingTimeDisplay
|
|
408
|
+
- TimeDivider
|
|
409
|
+
- VolumeMenuButton
|
|
410
|
+
- PlaybackRate
|
|
411
|
+
* New example on how to customize
|
|
412
|
+
|
|
413
|
+
<a name="0.0.2"></a>
|
|
414
|
+
# [0.0.2]()
|
|
415
|
+
|
|
416
|
+
* Copy the project settings from [reactstrap](https://github.com/reactstrap/reactstrap)
|
|
417
|
+
* Add new tests and new components
|
|
418
|
+
|
|
419
|
+
### Features
|
|
420
|
+
|
|
421
|
+
* **Player:** `Player` is the root component of the video-react-new player. All the others components should be in this component.
|
|
422
|
+
* **Video:** `Video` is the React component for Html5 video, it renders the Html5 video element to embed a video. It also is the container for all video sources. If there are more then one source, it could be failed back.
|
|
423
|
+
* **LoadingSpinner:** There would be a loading spinner to display before the video is loaded.
|
|
424
|
+
* **BigPlayButton:** Initial play button. Shows before the video has played. The hiding of the big play button is done via CSS and player states.
|
|
425
|
+
* **PosterImage:** The PosterImage specifies an image to be shown while the video is downloading, or until the user hits the play button. If this is not included, the first frame of the video will be used instead.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 video-react-new
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# video-react-new-new
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/video-react-new)
|
|
4
|
+
[](http://packagequality.com/#?package=video-react-new)
|
|
5
|
+
[](https://codecov.io/gh/video-react-new/video-react-new)
|
|
6
|
+
|
|
7
|
+
Video.React is a web video player built from the ground up for an HTML5 world using React library.
|
|
8
|
+
|
|
9
|
+
### ✨ The future of Video.React New
|
|
10
|
+
|
|
11
|
+
Maintenance of Video.React is being taken over by [Mux](https://www.mux.com). Mux is a [video api](https://www.mux.com/video-api) for developers. The team at Mux have worked on many highly respected projects and are committed to improving video tooling for developers.
|
|
12
|
+
|
|
13
|
+
Video.React will remain open source, but with a higher rate of fixes and releases over time. Thanks to everyone in the community for your ongoing support.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
Install `video-react-new-new` and **peer dependencies** via NPM
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm install --save video-react-new-new react react-dom
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
import css in your app or add video-react-new styles in your page
|
|
24
|
+
|
|
25
|
+
```jsx
|
|
26
|
+
import '~video-react-new/dist/video-react-new-new.css'; // import css
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
or
|
|
30
|
+
|
|
31
|
+
```scss
|
|
32
|
+
@import '~video-react-new/styles/scss/video-react-new-new.scss'; // or import scss
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
or
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<link
|
|
39
|
+
rel="stylesheet"
|
|
40
|
+
href="https://video-react-new.github.io/assets/video-react-new-new.css"
|
|
41
|
+
/>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Import the components you need, example:
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import React from 'react';
|
|
48
|
+
import { Player } from 'video-react-new-new';
|
|
49
|
+
|
|
50
|
+
export default props => {
|
|
51
|
+
return (
|
|
52
|
+
<Player>
|
|
53
|
+
<source src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4" />
|
|
54
|
+
</Player>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Browser support
|
|
60
|
+
|
|
61
|
+
| Browser | Windows | Mac | Linux | Android | iOS |
|
|
62
|
+
| :-----: | :------: | :---: | :---: | :------: | :--------: |
|
|
63
|
+
| Chrome | **Y** | **Y** | **Y** | **Y** | **Native** |
|
|
64
|
+
| Firefox | **Y** | **Y** | **Y** | untested | **Native** |
|
|
65
|
+
| Edge | **Y** | - | - | - | - |
|
|
66
|
+
| IE 11 | untested | - | - | - | - |
|
|
67
|
+
| Safari | - | **Y** | - | - | **Y** |
|
|
68
|
+
|
|
69
|
+
Please note that only the latest stable version is tested and supported. video-react-new may be usable in older releases, and we will accept pull requests for them, but they will not be frequently tested or actively supported.
|
|
70
|
+
|
|
71
|
+
For the items marked as "untested", we do welcome volunteer testers.
|
|
72
|
+
|
|
73
|
+
## Development
|
|
74
|
+
|
|
75
|
+
Run tests:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
npm test
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Run from local
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
$ npm install
|
|
85
|
+
$ npm start
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Contribution
|
|
89
|
+
|
|
90
|
+
Interested in making contribution to this project? Want to report a bug? Please read the [contribution guide](./CONTRIBUTION.md).
|
|
91
|
+
|
|
92
|
+
## Inspiration & Credits
|
|
93
|
+
|
|
94
|
+
- This project is heavily inspired by [video.js](http://www.videojs.com), and most of our css styles came from [video.js's styles](https://github.com/videojs/video.js/tree/master/src/css).
|
|
95
|
+
- The document site is built with [reactstrap](https://github.com/reactstrap/reactstrap).
|
|
96
|
+
- All the icons came from [Google Material Icons](https://material.io/icons/)
|
|
97
|
+
- Fonts were built by [iconmon](https://icomoon.io/).
|