yootd 0.0.72 → 0.0.73

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.
@@ -17,7 +17,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  import * as faceapi from '@vladmandic/face-api';
18
18
  import * as posedetection from '@tensorflow-models/pose-detection';
19
19
  import * as tf from '@tensorflow/tfjs';
20
- console.log("Hello, World!");
20
+ console.log('Hello, World!');
21
21
  import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
22
22
  import { EndPoint } from 'yootd-webrtc-sdk';
23
23
  import { useBem } from "../hooks/useBem";
@@ -158,6 +158,10 @@ export var VideoPlayer = /*#__PURE__*/forwardRef(function (_ref, ref) {
158
158
  },
159
159
  // 设置播放时间
160
160
  setVideoCurrentTime: function setVideoCurrentTime(time) {
161
+ // 判断是否为数字
162
+ if (typeof time !== 'number' || isNaN(time)) {
163
+ return;
164
+ }
161
165
  if (videoRef.current) {
162
166
  videoRef.current.currentTime = time;
163
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",