video-react-new 0.18.0 → 0.19.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/README.md +6 -13
- package/dist/video-react-new.cjs.js +4689 -0
- package/dist/video-react-new.cjs.js.map +1 -0
- package/dist/video-react-new.css +1049 -0
- package/dist/video-react-new.es.js +4652 -0
- package/dist/video-react-new.es.js.map +1 -0
- package/dist/video-react-new.full.js +5446 -0
- package/dist/video-react-new.full.js.map +1 -0
- package/dist/video-react-new.full.min.js +2 -0
- package/dist/video-react-new.full.min.js.map +1 -0
- package/dist/video-react-new.js +5115 -0
- package/dist/video-react-new.js.map +1 -0
- package/dist/video-react-new.min.js +2 -0
- package/dist/video-react-new.min.js.map +1 -0
- package/lib/Manager.js +114 -0
- package/lib/actions/player.js +197 -0
- package/lib/actions/video.js +266 -0
- package/lib/components/Bezel.js +114 -0
- package/lib/components/BigPlayButton.js +88 -0
- package/lib/components/ClickableComponent.js +123 -0
- package/lib/components/LoadingSpinner.js +35 -0
- package/lib/components/Player.js +528 -0
- package/lib/components/PosterImage.js +49 -0
- package/lib/components/Shortcut.js +412 -0
- package/lib/components/Slider.js +282 -0
- package/lib/components/Source.js +32 -0
- package/lib/components/Video.js +732 -0
- package/lib/components/control-bar/ClosedCaptionButton.js +184 -0
- package/lib/components/control-bar/ControlBar.js +183 -0
- package/lib/components/control-bar/ForwardControl.js +16 -0
- package/lib/components/control-bar/ForwardReplayControl.js +100 -0
- package/lib/components/control-bar/FullscreenToggle.js +87 -0
- package/lib/components/control-bar/LoadProgressBar.js +77 -0
- package/lib/components/control-bar/MouseTimeDisplay.js +45 -0
- package/lib/components/control-bar/PlayProgressBar.js +42 -0
- package/lib/components/control-bar/PlayToggle.js +96 -0
- package/lib/components/control-bar/PlaybackRate.js +52 -0
- package/lib/components/control-bar/PlaybackRateMenuButton.js +99 -0
- package/lib/components/control-bar/ProgressControl.js +101 -0
- package/lib/components/control-bar/ReplayControl.js +16 -0
- package/lib/components/control-bar/SeekBar.js +176 -0
- package/lib/components/control-bar/VolumeMenuButton.js +142 -0
- package/lib/components/menu/Menu.js +68 -0
- package/lib/components/menu/MenuButton.js +263 -0
- package/lib/components/menu/MenuItem.js +83 -0
- package/lib/components/popup/Popup.js +69 -0
- package/lib/components/popup/PopupButton.js +52 -0
- package/lib/components/time-controls/CurrentTimeDisplay.js +42 -0
- package/lib/components/time-controls/DurationDisplay.js +40 -0
- package/lib/components/time-controls/RemainingTimeDisplay.js +43 -0
- package/lib/components/time-controls/TimeDivider.js +32 -0
- package/lib/components/volume-control/VolumeBar.js +185 -0
- package/lib/components/volume-control/VolumeControl.js +33 -0
- package/lib/components/volume-control/VolumeLevel.js +50 -0
- package/lib/index.js +248 -0
- package/lib/reducers/index.js +27 -0
- package/lib/reducers/operation.js +36 -0
- package/lib/reducers/player.js +150 -0
- package/lib/setupTests.js +22 -0
- package/lib/utils/browser.js +28 -0
- package/lib/utils/dom.js +107 -0
- package/lib/utils/fullscreen.js +79 -0
- package/lib/utils/index.js +160 -0
- package/lib/video-react-new.js +19 -0
- package/package.json +3 -2
- package/CHANGELOG.md +0 -425
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# video-react-new
|
|
1
|
+
# video-react-new
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/video-react-new)
|
|
4
4
|
[](http://packagequality.com/#?package=video-react-new)
|
|
@@ -14,38 +14,31 @@ Video.React will remain open source, but with a higher rate of fixes and release
|
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
|
-
Install `video-react-new
|
|
17
|
+
Install `video-react-new` and **peer dependencies** via NPM
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
npm install --save video-react-new
|
|
20
|
+
npm install --save video-react-new react react-dom
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
import css in your app or add video-react-new styles in your page
|
|
24
24
|
|
|
25
25
|
```jsx
|
|
26
|
-
import '~video-react-new/dist/video-react-new
|
|
26
|
+
import '~video-react-new/dist/video-react-new.css'; // import css
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
or
|
|
30
30
|
|
|
31
31
|
```scss
|
|
32
|
-
@import '~video-react-new/styles/scss/video-react-new
|
|
32
|
+
@import '~video-react-new/styles/scss/video-react-new.scss'; // or import scss
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
or
|
|
36
35
|
|
|
37
|
-
```html
|
|
38
|
-
<link
|
|
39
|
-
rel="stylesheet"
|
|
40
|
-
href="https://video-react-new.github.io/assets/video-react-new-new.css"
|
|
41
|
-
/>
|
|
42
|
-
```
|
|
43
36
|
|
|
44
37
|
Import the components you need, example:
|
|
45
38
|
|
|
46
39
|
```js
|
|
47
40
|
import React from 'react';
|
|
48
|
-
import { Player } from 'video-react-new
|
|
41
|
+
import { Player } from 'video-react-new';
|
|
49
42
|
|
|
50
43
|
export default props => {
|
|
51
44
|
return (
|