@micromag/element-video 0.3.618 → 0.3.628
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/es/index.js +37 -37
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Hls from 'hls.js';
|
|
6
6
|
import isFunction from 'lodash/isFunction';
|
|
7
|
-
import PropTypes
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
8
|
import React, { useMemo, useRef, useState, useEffect, useCallback } from 'react';
|
|
9
|
-
import { PropTypes } from '@micromag/core';
|
|
9
|
+
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
10
10
|
import { Spinner } from '@micromag/core/components';
|
|
11
11
|
import { useMediaThumbnail, useMediaCurrentTime, useMediaDuration, useMediaReady, useProgressSteps } from '@micromag/core/hooks';
|
|
12
12
|
import { getMediaFilesAsArray, getVideoSupportedMimes } from '@micromag/core/utils';
|
|
@@ -14,42 +14,42 @@ import { getMediaFilesAsArray, getVideoSupportedMimes } from '@micromag/core/uti
|
|
|
14
14
|
var styles = {"container":"micromag-element-video-container","withSize":"micromag-element-video-withSize","media":"micromag-element-video-media","spinner":"micromag-element-video-spinner"};
|
|
15
15
|
|
|
16
16
|
var propTypes = {
|
|
17
|
-
media: PropTypes.videoMedia,
|
|
18
|
-
thumbnail: PropTypes
|
|
19
|
-
width: PropTypes
|
|
20
|
-
height: PropTypes
|
|
21
|
-
mediaRef: PropTypes
|
|
22
|
-
current: PropTypes
|
|
17
|
+
media: PropTypes$1.videoMedia,
|
|
18
|
+
thumbnail: PropTypes.oneOf([PropTypes.string, PropTypes$1.imageMedia]),
|
|
19
|
+
width: PropTypes.number,
|
|
20
|
+
height: PropTypes.number,
|
|
21
|
+
mediaRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
22
|
+
current: PropTypes.any
|
|
23
23
|
})]),
|
|
24
|
-
muted: PropTypes
|
|
25
|
-
autoPlay: PropTypes
|
|
26
|
-
paused: PropTypes
|
|
27
|
-
loop: PropTypes
|
|
28
|
-
playsInline: PropTypes
|
|
29
|
-
preload: PropTypes
|
|
30
|
-
disablePictureInPicture: PropTypes
|
|
31
|
-
disableHls: PropTypes
|
|
32
|
-
shouldLoad: PropTypes
|
|
33
|
-
withoutCors: PropTypes
|
|
34
|
-
className: PropTypes
|
|
35
|
-
innerClassName: PropTypes
|
|
36
|
-
onReady: PropTypes
|
|
37
|
-
onPlay: PropTypes
|
|
38
|
-
onPause: PropTypes
|
|
39
|
-
onEnded: PropTypes
|
|
40
|
-
onSeeked: PropTypes
|
|
41
|
-
onTimeUpdate: PropTypes
|
|
42
|
-
onProgressStep: PropTypes
|
|
43
|
-
onDurationChange: PropTypes
|
|
44
|
-
onVolumeChange: PropTypes
|
|
45
|
-
onSuspend: PropTypes
|
|
46
|
-
onSuspended: PropTypes
|
|
47
|
-
onPlayError: PropTypes
|
|
48
|
-
onQualityLevelChange: PropTypes
|
|
49
|
-
focusable: PropTypes
|
|
50
|
-
withPoster: PropTypes
|
|
51
|
-
withLoading: PropTypes
|
|
52
|
-
qualityStartLevel: PropTypes
|
|
24
|
+
muted: PropTypes.bool,
|
|
25
|
+
autoPlay: PropTypes.bool,
|
|
26
|
+
paused: PropTypes.bool,
|
|
27
|
+
loop: PropTypes.bool,
|
|
28
|
+
playsInline: PropTypes.bool,
|
|
29
|
+
preload: PropTypes.oneOf(['auto', 'metadata', 'none', null]),
|
|
30
|
+
disablePictureInPicture: PropTypes.bool,
|
|
31
|
+
disableHls: PropTypes.bool,
|
|
32
|
+
shouldLoad: PropTypes.bool,
|
|
33
|
+
withoutCors: PropTypes.bool,
|
|
34
|
+
className: PropTypes.string,
|
|
35
|
+
innerClassName: PropTypes.string,
|
|
36
|
+
onReady: PropTypes.func,
|
|
37
|
+
onPlay: PropTypes.func,
|
|
38
|
+
onPause: PropTypes.func,
|
|
39
|
+
onEnded: PropTypes.func,
|
|
40
|
+
onSeeked: PropTypes.func,
|
|
41
|
+
onTimeUpdate: PropTypes.func,
|
|
42
|
+
onProgressStep: PropTypes.func,
|
|
43
|
+
onDurationChange: PropTypes.func,
|
|
44
|
+
onVolumeChange: PropTypes.func,
|
|
45
|
+
onSuspend: PropTypes.func,
|
|
46
|
+
onSuspended: PropTypes.func,
|
|
47
|
+
onPlayError: PropTypes.func,
|
|
48
|
+
onQualityLevelChange: PropTypes.func,
|
|
49
|
+
focusable: PropTypes.bool,
|
|
50
|
+
withPoster: PropTypes.bool,
|
|
51
|
+
withLoading: PropTypes.bool,
|
|
52
|
+
qualityStartLevel: PropTypes.number
|
|
53
53
|
};
|
|
54
54
|
var defaultProps = {
|
|
55
55
|
media: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.628",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.628",
|
|
63
|
+
"@micromag/element-closed-captions": "^0.3.628",
|
|
64
64
|
"classnames": "^2.2.6",
|
|
65
65
|
"hls.js": "^1.5.15",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"access": "public",
|
|
73
73
|
"registry": "https://registry.npmjs.org/"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
|
|
76
76
|
}
|