pixuireactcomponents 1.4.3 → 1.4.4
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/package.json
CHANGED
|
@@ -49,13 +49,13 @@ var videoLog = function () {
|
|
|
49
49
|
};
|
|
50
50
|
export var VideoPlayer = function (props) {
|
|
51
51
|
var _a;
|
|
52
|
-
var
|
|
52
|
+
var _b = props.playUrl, playUrl = _b === void 0 ? '' : _b, _c = props.autoPlay, autoPlay = _c === void 0 ? true : _c, playEvent = props.playEvent, elementClass = props.elementClass, _d = props.hideSliderDuration, hideSliderDuration = _d === void 0 ? 3000 : _d, sliderBG = props.sliderBG, videoDuration = props.videoDuration, compRef = props.compRef, rootClassName = props.rootClassName;
|
|
53
53
|
var isStreaming = !playUrl.endsWith('.mp4');
|
|
54
54
|
var refVideo = useRef(null);
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
55
|
+
var _e = useState(VideoStatus.Pause), videoStatus = _e[0], setVideoStatus = _e[1];
|
|
56
|
+
var _f = useState(0), currentTime = _f[0], setCurrentTime = _f[1];
|
|
57
|
+
var _g = useState(0), totalTime = _g[0], setTotalTime = _g[1];
|
|
58
|
+
var _h = useState(false), showSlider = _h[0], setShowSlider = _h[1];
|
|
59
59
|
var sliderTimmer = useRef(null);
|
|
60
60
|
var rootRef = useRef();
|
|
61
61
|
var updatePlayTime = function () {
|