pixuireactcomponents 1.4.1 → 1.4.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,7 +37,7 @@ var VideoStatus;
37
37
  VideoStatus[VideoStatus["Pause"] = 2] = "Pause";
38
38
  VideoStatus[VideoStatus["End"] = 3] = "End";
39
39
  })(VideoStatus || (VideoStatus = {}));
40
- var openLog = true;
40
+ var openLog = false;
41
41
  var videoLog = function () {
42
42
  var msg = [];
43
43
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -119,7 +119,7 @@ export var VideoPlayer = function (props) {
119
119
  var onSliderDrag = function (value) {
120
120
  var totlaTime = (value / 100) * getDuration();
121
121
  var playSeconds = Math.floor(totlaTime / 1000 + 0.5);
122
- console.log('onSliderDrag, set currentTime:', playSeconds);
122
+ videoLog('onSliderDrag, set currentTime:', playSeconds);
123
123
  setCurrentTime(playSeconds);
124
124
  refVideo.current.currentTime = totlaTime / 1000;
125
125
  };