diff --git a/packages/webpack-plugin/lib/runtime/components/react/mpx-video.tsx b/packages/webpack-plugin/lib/runtime/components/react/mpx-video.tsx index e434a74c1..4c2cb865c 100644 --- a/packages/webpack-plugin/lib/runtime/components/react/mpx-video.tsx +++ b/packages/webpack-plugin/lib/runtime/components/react/mpx-video.tsx @@ -168,8 +168,6 @@ const MpxVideo = forwardRef, VideoProps>((videoProp const propsRef = useRef({}) - const bufferedPercentage = useRef() - propsRef.current = props const { normalStyle, hasSelfPercent, setWidth, setHeight } = @@ -297,7 +295,6 @@ const MpxVideo = forwardRef, VideoProps>((videoProp )) } - // 处理错误 function handleError ({ error }: OnVideoErrorData) { binderror && binderror(getCustomEvent('play', {}, { detail: { errMsg: error.localizedFailureReason }, layoutRef }, propsRef.current)) }